Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j in high availability mode in Java embedded

Is it possible to run Neo4j in high availability (HA) mode with read/write access of multiple java clients(java embedded)?

If yes are there special configurations needed? (Additionally to the standard HA configurations)

I want to run a HA cluster containing three servers local on my computer. Writing and reading from three java clients using sockets.

like image 234
user2524707 Avatar asked Apr 21 '26 03:04

user2524707


1 Answers

Running a Neo4j cluster is perfectly possible in embedded mode. You can even mix server instances and embedded instances in the same cluster.

For a embedded cluster instance be sure to use HighlyAvailableGraphDatabaseFactory and pass in your config options. At least you need:

`ha.initial_hosts`
`ha.server_id`

In the same way you would do it in a server instance in neo4j.properties file.

like image 147
Stefan Armbruster Avatar answered Apr 22 '26 16:04

Stefan Armbruster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!