Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2652

[3.3.x] Support Forum • Re: Abort request when under high load?

$
0
0
OK, for now this seems to work well enough.

Added to top of common.php file:

Code:

if (sys_getloadavg()[0] > 2.00) // 1.00 is supposedly 50% load on a 2 CPU core system{ header('HTTP/1.0 503 Service Unavailable',true,503); echo('503 Service Unavailable. Please try again later.'); exit();}
But I will definitely keep in mind the other suggestions like mod_evasive and Cloudflare. Maybe look into them when I have more time and feel like it. :D

Statistics: Posted by Albert Wiersch — Mon Apr 28, 2025 4:18 pm



Viewing all articles
Browse latest Browse all 2652

Trending Articles