Skip to content

Instantly share code, notes, and snippets.

@urjitbhatia
Created March 29, 2018 21:52
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 urjitbhatia/db99b53af279e16832111cf372303533 to your computer and use it in GitHub Desktop.
Save urjitbhatia/db99b53af279e16832111cf372303533 to your computer and use it in GitHub Desktop.
haproxy send a percentage of traffic
# send 10% traffic
http-request set-header Host foo.bar.com if { rand(10) eq 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment