PHP-FPM caps how many requests run at once with pm.max_children, and peak traffic queues behind that cap. Size it from memory per child, then cut the work each request does with OPcache and Laravel caches. Start with Fix PHP-FPM server reached pm.max_children setting.
- Laravel OPcache, Config Cache and Route Cache
Size OPcache for your codebase and run Laravel's config cache and route cache on every deploy, so each request runs cached code instead of rebuilding it.
- Fix PHP-FPM server reached pm.max_children setting
Size pm.max_children from measured memory per child and set the pool's timeouts, so PHP-FPM serves peak traffic without queueing or running out of memory.