in a production environment where nginx goes back to apache mpm-prefork / mod_wsgi, and I see 90 apache child processes when I expect 40 to be max, as described below. configuration / setup is nothing interesting:
- nginx is reverse proxying on apache via
proxy_pass and serving static media - apache only serves dynamic requests
corresponding nginx configuration:
worker_processes 15; events { worker_connections 1024; } keepalive_timeout 10;
corresponding apache configuration:
KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule mpm_prefork_module> StartServers 20 MinSpareServers 7 MaxSpareServers 10 MaxClients 200 MaxRequestsPerChild 0 </IfModule>
mod_wsgi config, where webapp is the name of the process:
WSGIDaemonProcess webapp user=www group=users threads=1 processes=40
Am I missing something?
source share