I am using proxy_cache as a cache server, about 20-30k requests /s. It
sometimes gets slow,and I find lots of such messages:

2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not enough
2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not enough
2014/11/05 17:04:12 [alert] 22169#0: 512 worker_connections are not enough
2014/11/05 17:04:12 [alert] 22169#0: 512 worker_connections are not enough
2014/11/05 17:04:12 [alert] 22169#0: 512 worker_connections are not enough

process 22169 is the "nginx: cache manager process" .


Should  I  modify the num of cache_manager_process_cycle->connection_n in 
src/os/unix/ngx_process_cycle.c,  and rebuild nginx ?

1310 static void
1311 ngx_cache_manager_process_cycle(ngx_cycle_t *cycle, void *data)
1312 {
1313     ngx_cache_manager_ctx_t *ctx = data;
1314 
1315     void         *ident[4];
1316     ngx_event_t   ev;
1317 
1318     /*
1319      * Set correct process type since closing listening Unix domain
socket
1320      * in a master process also removes the Unix domain socket file.
1321      */
1322     ngx_process = NGX_PROCESS_HELPER;
1323 
1324     ngx_close_listening_sockets(cycle);
1325 
1326     /* Set a moderate number of connections for a helper process. */
1327     cycle->connection_n = 512;
1328

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,254590,254590#msg-254590

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to