Skip to content

Instantly share code, notes, and snippets.

@argent-smith
Created October 3, 2012 06:47
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 argent-smith/3825447 to your computer and use it in GitHub Desktop.
Save argent-smith/3825447 to your computer and use it in GitHub Desktop.
Haproxy timeouts for stable communication with nginx/unicorn backend
backend nginx_backend
#timeout connect 400
timeout connect 6000
#timeout server 600
timeout server 6000
server server1 10.0.0.1:8080 maxconn 2000 check

The timeouts are rather big but the initial 400/600 have proved to be too short to cause 504 on most file uploads to the farm.

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