This project is trying to implement HA on Neo4j community.
- Java Version 1.8
- Scala Version MUST BE 2.11.0
-
Set your neo4j database's account and password and set your Zookeeper connectString and sessionTimeout In "MySettings.scala".
-
Start your Neo4j server in every node.
-
Start your Zookeeper server in every node.
-
run the "ZkServer.java" in every node.
-
run the "Coordinator.scala" in every node.
Then you can watch main/scala/test's 2 file, change 'client.scala' line24's code to ReadCypher/WriteCypher and change 'RunClient.scala' according to your needs. and see the result from RpcClient console and cluster's http://localhost:7474/browser/.