Skip to content

Instantly share code, notes, and snippets.

@groner
Last active June 10, 2022 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groner/d1aedfe179ea9463b5af23fe49d3a2c2 to your computer and use it in GitHub Desktop.
Save groner/d1aedfe179ea9463b5af23fe49d3a2c2 to your computer and use it in GitHub Desktop.
scripts to test different haproxy cookie mode behaviors
global
daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
listen http-in
bind *:80
#cookie build @COOKIE-MODE@ nocache httponly dynamic
#dynamic-cookie-key "potatoes"
#server httpbin 172.17.0.2:80 maxconn 32 weight 1
cookie build @COOKIE-MODE@ nocache httponly
server httpbin 172.17.0.2:80 maxconn 32 cookie one weight 1
@groner
Copy link
Author

groner commented Mar 13, 2019

The address in haproxy.cfg.in should point to an httpbin container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment