2 ms·
Agreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.
by streety 17y ago
Agreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.
- pvg 17y agoIt's also a poor way to decide whether to stop serving pages. Depending on circumstances, it's possible for request handling to be still reasonable or completely wedged for same load numbers. The number is also dependent on the configuration of the machine so moving to a box with, say, more cores might make whatever magic constant threshold you put in your code even wronger.