Re: Files still on disc after inactive time

2018-03-21 Thread Grzegorz Ćwikliński
Hello, As you said before killing nginx worker is connected with third party module which is Linux kernel Out Of Memory killer. Because nginx is using too much memory OOM killer score is about 800-900 point where 1000 is maximum, which is why kernel is killing out nginx worker, and after that

Re: Files still on disc after inactive time

2018-03-21 Thread Maxim Dounin
Hello! On Wed, Mar 21, 2018 at 05:52:20AM -0400, Grzegorz Ćwikliński wrote: > As you said before killing nginx worker is connected with third party module > which is Linux kernel Out Of Memory killer. > > Because nginx is using too much memory OOM killer score is about 800-900 > point where

Re: nginx undocumented directives

2018-03-21 Thread Yaroslav Zhuravlev
Hello! […] >> But directive subrequest_output_buffer_size is still undocumented. >> >> It is added by http://hg.nginx.org/nginx/rev/20f139e9ffa8#l4.7 >> >> It is undocumented by mistake (and will be documented in near future) >> or it is undocumented by purpose and it will be never documented

Re: concurrent streams exceeded 128 while processing HTTP/2 connection

2018-03-21 Thread Maxim Dounin
Hello! On Wed, Mar 21, 2018 at 08:40:35AM -0400, Saytik wrote: > Периодически при отправке POST запроса с мобильного приложения > запрос длится 60 секунд и по таймауту с кодом 408заканчивается. > При этом в одну секунду создается много запросоводинаковых с >

concurrent streams exceeded 128 while processing HTTP/2 connection

2018-03-21 Thread Saytik
Периодически при отправке POST запроса с мобильного приложения запрос длится 60 секунд и по таймауту с кодом 408заканчивается. При этом в одну секунду создается много запросоводинаковых с кодом 408. Со стороны мобильного приложения это заполнение анекты

Процессинг переменных строки

2018-03-21 Thread gz
Подскажите пожалуйста, есть ли способ произвести замену переменных строки (например, в значении заголовка ответа, полученного от апстрима) на их значения? … set $var_1 one; set $var_2 two; … some_string_${var_1}_${var_2} → some_string_one_two Пока нашёл такое только в отдельных модулях,

Re: Процессинг переменных строки

2018-03-21 Thread Илья Шипицин
попробуйте map http://nginx.org/ru/docs/http/ngx_http_map_module.html#map 22 марта 2018 г., 3:35 пользователь gz написал: > Подскажите пожалуйста, есть ли способ произвести замену переменных строки > (например, в значении заголовка ответа, полученного от апстрима)

Re: concurrent streams exceeded 128 while processing HTTP/2 connection

2018-03-21 Thread Saytik
Спасибо за ответ. Судя по всему так и есть. версия okhttp ниже 3.3 хотя там правки с версии 3.3 OkHttp 3.3 will be compatible with nginx 1.9.15 OkHttp 3.2 doesn't recover from REFUSED_STREAM in HTTP/2. Fix: Upgrade to OkHttp 3.3 which recovers from a REFUSED_STREAM. осталось

[njs] http subrequest() method.

2018-03-21 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/750f7c6f071c branches: changeset: 465:750f7c6f071c user: Dmitry Volyntsev date: Wed Mar 21 17:33:13 2018 +0300 description: http subrequest() method. Creates an nginx's subrequest with the specified arguments and registers a

[njs] http req.response() method.

2018-03-21 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/fa22235730b1 branches: changeset: 464:fa22235730b1 user: Dmitry Volyntsev date: Wed Mar 21 17:33:12 2018 +0300 description: http req.response() method. diffstat: nginx/ngx_http_js_module.c | 31

[njs] setTimeout() and clearTimeout() methods.

2018-03-21 Thread Dmitry Volyntsev
details: http://hg.nginx.org/njs/rev/6d599ae5b35b branches: changeset: 463:6d599ae5b35b user: Dmitry Volyntsev date: Wed Mar 21 17:33:12 2018 +0300 description: setTimeout() and clearTimeout() methods. Public methods are introduced to create and post async events