How can I detect and survive being “Slashdotted”?

前端 未结 24 1834
半阙折子戏
半阙折子戏 2021-01-29 21:19

What\'s a good way to survive abnormally high traffic spikes?

My thought is that at some trigger, my website should temporarily switch into a \"low bandwidth\" mode: swi

24条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 21:35

    About surviving you are right: switch or redirect the slashdotted link to a static html page without graphics. You might even want to put this page on an other webserver, so your original server will not take too much load.

    I'd use a temporary redirection for this, and remove the redirection when the traffic wears off.

    But how to detect this, this I'd like to know, too! Just counting the hits in the last few seconds might not be enough?

提交回复
热议问题