doubts with neo4j HA

89 views
Skip to first unread message

D.Radhakrishnan

unread,
Aug 11, 2012, 9:20:14 AM8/11/12
to ne...@googlegroups.com


Hi,

We want to try out neo4j HA with one master and 2 slaves.
The expectation is 
clients requests should be loadbalanced across the 3 servers. 
was reading about sticky sessions with neo4j in one of jim webber's blog, so interested to try out that too.
writes can go to any one.

we will have 3 neo4j instances and 3 zookeeper instances. 

one doubt, how does neo4j do loadbalancing here.
there is a property called ha.coordinators where we will specify all the zookeeper IPs. 

How does loadbalancing happen with the ha.coordinators ? is it round robin or does it always connnect to the first zookeeper IP ?
Where we can see the client connection logs on neo4j server ?

Thanks. 

Jim Webber

unread,
Aug 11, 2012, 1:58:42 PM8/11/12
to ne...@googlegroups.com
Hey there,

Neo4j doesn't do load balancing, that's something your other infrastructure would take care of. But I guess lots of folks on this list have opinions about which load balancer to use...

Perhaps I'll need to revisit that blog post to make it clearer.

Sorry to disappoint you!

Jim

radha krishnan

unread,
Aug 11, 2012, 9:51:28 PM8/11/12
to ne...@googlegroups.com
Hi jim. 

so neo4j only takes care of master-slave sync, load balancing  and sticky  sessions is something the app has to take care. Am  i correct ?



--
D.Radhakrishnan
B.E Computer Science and Engineering
Madras Institute of Technology
Anna University
When GOD is with us.. who can be against us ??

Julian Simpson

unread,
Aug 12, 2012, 3:13:07 AM8/12/12
to ne...@googlegroups.com
Hi Radha,

On Sun, Aug 12, 2012 at 2:51 AM, radha krishnan <dradhakr...@gmail.com> wrote:
Hi jim. 

so neo4j only takes care of master-slave sync, load balancing  and sticky  sessions is something the app has to take care. Am  i correct ?


You'll want an application server to do load balancing and session affinity - Neo4j does replicate data between master and slave, but only to keep your data available.

HTH,

J.



--
Julian Simpson 
Software Engineer | Neo Technology
+447967189579 | @builddoctor
As a friend of Neo, register for GraphConnect and get a 20% discount. Code: GCFON
Reply all
Reply to author
Forward
0 new messages