I have a server running Debian, and periodically it gets weak DDoS attacks.
Usually it's enough to stricken nginx config like setting up limit_req, but it gives normal users trouble viewing image gallery, so I can't just leave limit enabled at all times.
So, I've thought, is there some way for nginx to change it's behaviour based on current server load? Setting up limits, when server is under heavy load, and removing them when this period ends?