Using sys_getloadavg and num_cpus in PHP to Throttle API April 29, 2021 php No Comments Given that we know how to retrieve the number of CPU cores using PHP Function, we can then check the current load average, if it is larger than a … [Continue Reading...]
How to Respond with 503 Service Busy to Requests when Server Load Average is High? February 11, 2017 linux, php, programming languages, regex No Comments I got the email notification when the server load is high: Your Server (helloacm) Load Alert Needs Attention! 11.54 110.63 102.98 3/391 5989 and I checked the apache access … [Continue Reading...]