Skip to content

Instantly share code, notes, and snippets.

@dspezia
Created May 10, 2012 14:46
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 dspezia/2653628 to your computer and use it in GitHub Desktop.
Save dspezia/2653628 to your computer and use it in GitHub Desktop.
haproxy to target redis
global
daemon
maxconn 256
defaults
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend redis
bind *:1521
default_backend servers
backend servers
server R1 127.0.0.1:6379 maxconn 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment