Simon Willison’s Weblog

Subscribe

Monday, 21st December 2009

Round-robin Django setup with nginx. An nginx trick I didn’t know: a low proxy_connect_timeout value (e.g. 2 seconds) combined with the proxy_next_upstream setting means that if one of your backends breaks a user won’t even see an error, they’ll just have a short delay before getting a response from a working server.

# 3:43 pm / django, load-balancing, nginx, ops, sysadmin

2009 » December

MTWTFSS
 123456
78910111213
14151617181920
21222324252627
28293031