Please sign in to comment.
Use varnish's round-robin director instead of random director to avoi…
…d getting 503 errors when some (but not all) back-ends are down. (The random director doesn't necessarily try all back-ends, even if retries is set >= than the number of back-ends.) BTW this is only for balancing between back-end nginx servers and there's no problem doing round-robin here, the web servers themselves are still using Passenger's global queueing to balance between the Rails back-ends so there is no issue with one slow request holding up all the others.
- Loading branch information...
Showing with 2 additions and 4 deletions.