Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

This probably isnt' a Django specific question, but I'm wondering how those "Server over capacity" messages are displayed.

Some examples:

  • Twitter's fail whale
  • Tumblr's Over capacity slash page
  • Drawception's over capacity message when new games are created.
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Usually these settings are composed of a Web Server acting as a proxy to several application servers. Look at the architecture.

For these Server overload events, if any of the appservers can't process requests, they return a HTTP 50x status, in which case Nginx will serve a (generic) static error page.

share|improve this answer
add comment

One way to achieve this would to have a load balancer in between the servers and the users. If the load balancer determines that the server is taking too long to respond, or if the server is down, then the load balancer can redirect to a static "over capacity" page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.