Neo4j in high availability mode in Java built in

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

If so, are special configurations needed? (In addition to standard HA configurations)

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

+3


source to share


1 answer


Starting a Neo4j cluster is quite possible in embedded mode. You can even mix Server Instances and Embedded Instances on the same cluster.

For an embedded cluster instance, be sure to use HighlyAvailableGraphDatabaseFactory and pass the configuration parameters. At least you need:



`ha.initial_hosts`
`ha.server_id`

      

Likewise, you would do it on a server instance in the neo4j.properties file.

+5


source







All Articles