3
votes

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.

1
Removed the "thanks", removed abbrev from title, add abbrev detail in body at first mentioning.Laur Ivan

1 Answers

5
votes

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.