Welcome! Log In Create A New Profile

Advanced

cache manager worker_connections not enough

November 05, 2014 04:33AM
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
Subject Author Posted

cache manager worker_connections not enough

zhijianpeng November 05, 2014 04:33AM

Re: cache manager worker_connections not enough

Maxim Dounin November 05, 2014 07:58AM

Re: cache manager worker_connections not enough

zhijianpeng November 10, 2014 10:16AM

Re: cache manager worker_connections not enough

Maxim Dounin November 10, 2014 11:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready