Origin overload limit
A flood of visitors from many different addresses, each asking for only a page or two, gets past limits that count requests per address. Every request still reaches your origin server, which queues them until it runs out of PHP workers or memory and the site goes down.
Origin overload limit sets the most requests a second the sentry sends to the origin server for one domain. This is a total for the origin from all visitors combined, not a per-visitor limit. During a flood, the extra requests are turned away at the sentry, so the origin server keeps serving the requests it can handle.
How it works
- Requests a second. Up to the number you set, with short bursts of up to twice that. Over it, visitors see the too many requests page, or the Captcha Protection check if Captcha Protection checks visitors who go over a rate limit.
- Requests at a time. Up to 60 at once at 25 a second, and more for higher settings. Over it, visitors see the site unavailable page.
- Both pages ask browsers to try again in 30 seconds.
- Search engines and other verified crawlers, your trusted addresses, and visitors who have completed the Captcha Protection check have an allowance of their own of the same size, so a flood can't use it up.
- It only works with Website protection on, and not in log mode.
Turning it on
- In the portal, open the domain, choose Edit, and open the Limits tab.
- Under Origin overload limit, enter the Requests a second (from 5 to 1000) and click Turn on.
To change it, enter a new number and click Save. To stop it, click Turn off. It's off for every domain until you turn it on.
Choosing a number
Start at 25 for a small server with 4 CPU cores and 8 GB of memory. A larger server, or a site that serves most pages from a cache, can take more. Set it too low and real visitors are turned away on a busy day, so look at Requests per minute on the origin page (that figure is for the whole origin) and the domain's Web requests chart before you set it.