Skip to content

Instantly share code, notes, and snippets.

@cantremember
Created March 23, 2012 06:00
Show Gist options
  • Save cantremember/2167472 to your computer and use it in GitHub Desktop.
Save cantremember/2167472 to your computer and use it in GitHub Desktop.
nginx upstream cluster example
upstream fastcgi_cluster {
# sticky by IP
###ip_hash;
# max_fails=3 fail_timeout=15s weight=2
# down backup
server 127.0.0.1:PORT-1;
server 127.0.0.1:PORT-2;
server 127.0.0.1:PORT-3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment