[Neo4j] Neo4j HA and Spring Data Graph 1.1

Michael Hunger michael.hunger at neotechnology.com
Fri Nov 18 03:46:54 CET 2011

Hi Karthik,

You have to do the normal Neo4j HA setup (http://docs.neo4j.org/chunked/snapshot/ha.html).

* add the additional dependencies to your project org.neo4j:neo4j-ha:1.5
* running 3 coordinators (either download neo4j-enterprise and use start-coordinator or start the zookeeper instances programmatically)
* configure Spring Data Neo4j to use the HighlyAvailableGraphDatabase and provide the necessary config

<bean id="haDatabase" class="org.neo4j.kernel.HighlyAvailableGraphDatabase"
    <constructor-arg index="0" value="target/config-test"/>
    <constructor-arg index="1">
            <entry key="ha.server_id" value="1"/>
            <entry key="ha.server" value="localhost:6001"/>
            <entry key="ha.coordinators" value="localhost:2181,localhost:2182,localhost:2183"/>

<neo4j:config graphDatabaseService="haDatabase"/>

If you have any further questions, please ask



Am 17.11.2011 um 21:45 schrieb kv8:

> We have an Spring Data Graph implementation that is currently working great
> with the embedded neo4j database. We want to try out the HA setup and my
> understanding is you can run HA in embedded mode. 
> Assuming you have the HA configuration setup, would configuring the
> graphDatabaseService bean to use the HighlyAvailableGraphDatabase is all you
> need to do ?  I will keep you guys posted with my progress. 
> Thanks much,
> Karthik
> --
> View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-HA-and-Spring-Data-Graph-1-1-tp3517015p3517015.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

More information about the User mailing list