I am struggling to handle a traffic of 10K+ It will reach a lot. But my bad configuration is limiting them.
www.conf
pm.max_children = 400
pm.start_servers = 40
pm.min_spare_servers = 40
pm.max_spare_servers = 70
pm.max_requests = 800
nginx.conf
worker_processes 3;
events {
worker_connections 8096;
accept_mutex on;
accept_mutex_delay 500ms;
multi_accept on;
use epoll;
}
sendfile on;
tcp_nodelay on;
tcp_nopush on;
client_body_buffer_size 128K;
client_max_body_size 8m;
client_body_timeout 15;
client_header_timeout 15;
send_timeout 10;
keepalive_timeout 15;
open_file_cache max=5000 inactive=20s;
open_file_cache_valid 60s;
open_file_cache_min_uses 4;
open_file_cache_errors on;
If i change the values, it hangs with 3k or 5k visitors.
This one handle 5k to 8k
But cpu and ram are available in server.
Quad core and 32GB Ram SSD