Running HAproxy for Neo4J in HA mode

246 views
Skip to first unread message

abhijith K

unread,
Oct 12, 2012, 8:02:26 AM10/12/12
to ne...@googlegroups.com
Hi All, 
                I was able to setup Neo4J in HA mode on 3 machines. I wanted to have HAproxy as a front-end.

Could you please answer the below questions:
1. When we run HAProxy, will all the transactions for all 3 Neo4j instances, go through HAProxy ?
      If yes, How exactly can I interact with Neo4j ? Am I suppose to talk to HAproxy which indirectly forwards the request to low-load Neo4J server ?
2. Is there a way we can interact with Neo4J DB in embedded mode ? with HA Proxy running ?
3. How to talk to specific Neo4J server (Slave) for read-only purpose ?

Thanks a lot in advance.

Regards,
Abhijith K

David Montag

unread,
Oct 12, 2012, 1:06:35 PM10/12/12
to ne...@googlegroups.com
Hi Abhijith,

Did you check out the HAProxy tutorial in our documentation? See http://docs.neo4j.org/chunked/snapshot/ha-haproxy.html for more info.

To address your questions:

1. All traffic will typically go through HAProxy. HAProxy can be configured in a number of ways so that it routes your traffic optimally.

2. HAProxy does HTTP load balancing and distribution of requests. If you run Neo4j embedded, then you must expose your embedded operations over HTTP in order to access them remotely. This is typically done by hosting your embedded instance in a Tomcat.

3. Can you please be more specific on this one? Do you want to send a request and guarantee that it's read-only?

Thanks,
David

--
 
 



--
Neo Technology, www.neotechnology.com
Skype: ddmontag

As a friend of Neo, register for GraphConnect and get a 20% discount. Code: GCFON

abhijith K

unread,
Oct 12, 2012, 11:28:16 PM10/12/12
to ne...@googlegroups.com
Thanks a lot again, Dave . I will othrough the HAproxy doc and will get back.

Regards,
Abhijith K
Reply all
Reply to author
Forward
0 new messages