What happens when your website goes viral and your host simply cannot maintain the amount of traffic it suddenly got?

Has anyone been in the situation of buying a low budget hosting packages and starting a small website not having really high hopes, just doing basic SEO and starting to write articles doing some social media campaigns but suddenly something starts working as it should and you got huge amounts of traffic coming your way, a lot then your host can handle.
What can you do in such a situation, because time is very important, you won't want people trying to access your website only to be hit by an error of some kind.
I've recently witnessed experienced such an event, a website under our administration got a huge influx of traffic for both organic sources but also a social campaign going viral, the servers got overloaded and the website crashed, our sys admin was going crazy calling the hosting company for an emergency upgrade but everything is moving very slowly because everything happened this weekend and hosting company used by this website doesn't have a 24h customer service in place.
What kind of security measures can one implement to make sure a website doesn't crash when a traffic spike hits all time high? The answer will be a better hosting plan but not everyone is willing to pay for such a server every month just because the website "may" or "may not" go viral at some point.

Has anyone been in the situation of buying a low budget hosting packages and starting a small website not having really high hopes, just doing basic SEO and starting to write articles doing some social media campaigns but suddenly something starts working as it should and you got huge amounts of traffic coming your way, a lot then your host can handle.
What can you do in such a situation, because time is very important, you won't want people trying to access your website only to be hit by an error of some kind.
I've recently witnessed experienced such an event, a website under our administration got a huge influx of traffic for both organic sources but also a social campaign going viral, the servers got overloaded and the website crashed, our sys admin was going crazy calling the hosting company for an emergency upgrade but everything is moving very slowly because everything happened this weekend and hosting company used by this website doesn't have a 24h customer service in place.
What kind of security measures can one implement to make sure a website doesn't crash when a traffic spike hits all time high? The answer will be a better hosting plan but not everyone is willing to pay for such a server every month just because the website "may" or "may not" go viral at some point.





