PHP-FPM on CloudSonic

Handle PHP worker processes efficiently with a pool tuned to your server RAM and connected via Unix socket

TL;DR PHP-FPM

PHP-FPM is configured on every CloudSonic server with a pool sized to available RAM, connected via Unix socket for the fastest possible communication with Nginx.

PHP-FPM is a FastCGI Process Manager for PHP that manages the pool of PHP worker processes handling your web requests. It runs on every CloudSonic server connected to Nginx via a Unix socket for the lowest possible latency, with a pool sized to available server RAM and slow request logging enabled so any PHP execution that takes longer than expected is recorded for diagnosis. PHP-FPM's dynamic process management means PHP resources are allocated based on actual traffic rather than reserving fixed memory regardless of demand.

PHP-FPM for Process Management on CloudSonic

PHP-FPM on CloudSonic connects to Nginx via a Unix socket rather than a TCP port, eliminating network overhead on every PHP request for lower latency and higher throughput. The PHP-FPM pool is sized to approximately 40 percent of available server RAM using dynamic process management, which allocates worker processes based on actual traffic rather than reserving fixed memory regardless of demand. Slow request logging is enabled so any PHP execution that takes longer than expected is recorded with a full stack trace, making it straightforward to identify performance bottlenecks in your application code.

Useful Commands

sudo php-fpm8.4 --test
curl http://127.0.0.1/fpm-status?full