Skip to content

Instantly share code, notes, and snippets.

@saltlakeryan
Created July 17, 2014 15:54
Show Gist options
  • Save saltlakeryan/8f0cf5cec7d8f049c155 to your computer and use it in GitHub Desktop.
Save saltlakeryan/8f0cf5cec7d8f049c155 to your computer and use it in GitHub Desktop.
HA Proxy example reverse proxy
http://docs.neo4j.org/chunked/stable/ha-haproxy.html
global
daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind *:80
default_backend neo4j
backend neo4j
option httpchk GET /db/manage/server/ha/available
server s1 10.0.1.10:7474 maxconn 32
server s2 10.0.1.11:7474 maxconn 32
server s3 10.0.1.12:7474 maxconn 32
listen admin
bind *:8080
stats enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment