If my servers get many visitors, and it can't handle the traffic, what would happen to the site, and how do I get it back up?
|
Getting your site back up depends on exactly what happened:
|
|||
|
|
|
If you expect to get a lot of visits from Launch, then it is probably worth doing some performance testing and scale up as much as you can afford. As far as what happens, if you get way more traffic then you can handle your sites will be down for all practical purposes too all users. To limit the damage you could put a rate limiter in front of your servers, so at least a certain amount of people can use the site. If these are web servers, then you might have a look at HAProxy rate limiting. Always consider caching as much as possible, this can allow you to handle a lot more load if your application is such that caching can be used. |
|||
|
|
|
Nothing more than visitors will have to wait or even can't see your site content wouldn't happen. You have to optimize your web stack or upgrade your hardware/balance traffic |
|||
|
|
|
Some web frameworks/setups are subject to positive load feedback effects, these can require manual intervention to get the site back up even if traffic has lowered again (lingering requests, for example to backend databases, still retrying, left from the load bursts, cause new requests to have far less of a budget, resulting in a smaller number of requests needed to drive the application over the edge again...) If load balancers are involved: Nodes going offline from overload will leave even less nodes to deal with the onslaught... Cache stampeding effecs somewhere in the stack can also cause very unstable behaviour. |
|||
|
|