Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Last active January 19, 2020 16:20
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 tsh-code/afbdb26e812f9ea0853719276225ebfb to your computer and use it in GitHub Desktop.
Save tsh-code/afbdb26e812f9ea0853719276225ebfb to your computer and use it in GitHub Desktop.
Sticky Session HAProxy
backend backends
balance leastconn
cookie serverid insert
server srv1 127.0.0.1:8081 check cookie srv1
server srv2 127.0.0.1:8082 check cookie srv2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment