падения воркера после включения max_conns

Илья Шипицин chipitsine на gmail.com
Пн Май 14 09:35:27 UTC 2018


привет!

используем nginx-1.13.9 на freebsd.

поменяли конфигурацию

было

upstream xxx {
    server server1:80;
    server server2:80;
    server server3:80;
    keepalive 10;
}

стало

upstream xxx {
    server server1:80 max_conns=5000;
    server server2:80 max_conns=5000;
    server server3:80 max_conns=5000;
    keepalive 10;
    zone xxx 10m;
}

стали ловить вот такие падения

(gdb) bt
#0  ngx_event_connect_peer (pc=0x827944638) at
src/event/ngx_event_connect.c:41
#1  0x00000000004720d3 in ngx_http_upstream_connect (r=0x807e13050,
u=0x827944628) at src/http/ngx_http_upstream.c:1508
#2  0x000000000046f1b7 in ngx_http_upstream_init_request (r=<value
optimized out>) at ngx_event_timer.h:46
#3  0x0000000000467ab8 in ngx_http_read_client_request_body (r=0x807e13050,
post_handler=0x46e4e0 <ngx_http_upstream_init>) at ngx_event_timer.h:55
#4  0x00000000004a5e43 in ngx_http_proxy_handler (r=0x807e13050) at
src/http/modules/ngx_http_proxy_module.c:930
#5  0x0000000000456d1a in ngx_http_core_content_phase (r=0x807e13050,
ph=0x81a3bc0f8) at src/http/ngx_http_core_module.c:1162
#6  0x00000000004560f5 in ngx_http_handler (r=0x807e13050) at
src/http/ngx_http_core_module.c:851
#7  0x000000000045fe2c in ngx_http_process_request (r=0x807e13050) at
src/http/ngx_http_request.c:1948
#8  0x0000000000461b73 in ngx_http_process_request_line (rev=0x8042ccc68)
at src/http/ngx_http_request.c:1048
#9  0x0000000000449c48 in ngx_kqueue_process_events (cycle=0x81c449050,
timer=<value optimized out>, flags=<value optimized out>) at
src/event/modules/ngx_kqueue_module.c:669
#10 0x000000000043ef69 in ngx_process_events_and_timers (cycle=0x81c449050)
at src/event/ngx_event.c:242
#11 0x0000000000447f79 in ngx_worker_process_cycle (cycle=0x81c449050,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:750
#12 0x0000000000446328 in ngx_spawn_process (cycle=<value optimized out>,
proc=<value optimized out>, data=<value optimized out>, name=<value
optimized out>, respawn=32) at src/os/unix/ngx_process.c:199
#13 0x00000000004472a9 in ngx_master_process_cycle (cycle=0x81c449050) at
src/os/unix/ngx_process_cycle.c:622
#14 0x000000000041cda8 in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:382
Current language:  auto; currently minimal
(gdb)



у нас весьма развесистый конфиг, и есть сторонние модули (но по трейсу
вроде они не задействованы). в списке изменений между 1.13.9 и 1.13.12 не
вижу правок в этих местах.


поразбираемся ?
----------- следущая часть -----------
Вложение в формате HTML было извлечено…
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20180514/a506f39f/attachment.html>


Подробная информация о списке рассылки nginx-ru