Skip to content

Instantly share code, notes, and snippets.

@msudgh
Last active May 19, 2018 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msudgh/5cb6f2e367c44e2fc716d7e9d92828c4 to your computer and use it in GitHub Desktop.
Save msudgh/5cb6f2e367c44e2fc716d7e9d92828c4 to your computer and use it in GitHub Desktop.
...
frontend redis_gate
bind 127.0.0.1:5000 name redis
default_backend redis_servers
maxconn 1024
backend redis_servers
balance roundrobin
option tcp-check
tcp-check connect
tcp-check send PING\r\n
tcp-check expect string +PONG
tcp-check send QUIT\r\n
tcp-check expect string +OK
server redis_7000 localhost:7000 check inter 1s weight 77
server redis_7001 localhost:7001 check inter 1s weight 33
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment