I have an Ubuntu droplet with the following:
- 16GB RAM
- 8 CPUs
I'm running nginx and PHP FPM, but I don't seem to be getting the most out of my server. Both my CPU usage and my memory usage are at around 10%, even though the server hangs when traffic gets intensive.
- worker_processes: 8
- worker_connections: 6000
- epoll is enabled
- multi_accept is on
- gzip enabled and keep-alive is enabled
In my www.conf file:
- pm: dynamic
- pm.max_children: 1600
- pm.start_servers: 75
- pm.min_spare_servers: 75
- pm.max_spare_servers: 90
Everything else uses the default setting.
Oh, and my ulimit is set to 99999 and PHP's opcache is enabled.
Is there any checklist that somebody can go through to make sure they are fine tuning nginx and php-fpm to fully utilise the resources of a server?