Re: NGINX просто не принимает какой-то процент коннектов

Dmytro Lavryk root на dl.sm.ua
Ср Дек 27 07:33:29 UTC 2017


---- On ср, 27 груд. 2017 09:23:09 +0200 Evgeniy Berdnikov <bgx на protva.ru> wrote ----



On Wed, Dec 27, 2017 at 09:05:21AM +0200, Dmytro Lavryk wrote:

> NGINX, такое ощущение, что просто игнорит какое-то количество коннектов. Для снятия статистики применяется collectd, у него в логах:[2017-12-27 09:52:55] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10002 milliseconds with 0 bytes received



 Здесь написано, что в коннекции не приходило никаких данных.



> Порт пересобирал, с sendfile и aio экспериментировал, error_log в debug ставил - ничего интересного не нашел, в бубен стучал.



 В debug-логе видно, что данные присылались?





Не совсем понял что должно быть видно. Картина примерно такая:



collectd.log

[2017-12-27 10:30:15] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10002 milliseconds with 0 bytes received

[2017-12-27 10:30:15] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.

[2017-12-27 10:30:45] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10008 milliseconds with 0 bytes received

[2017-12-27 10:30:45] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.

[2017-12-27 10:31:05] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10018 milliseconds with 0 bytes received

[2017-12-27 10:31:05] [notice] read-function of plugin `nginx' failed. Will suspend it for 40.000 seconds.

[2017-12-27 10:31:55] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10002 milliseconds with 0 bytes received

[2017-12-27 10:31:55] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.



nginx-error.log

2017/12/27 10:30:47 [info] 9116#101634: *84097 kevent() reported that client 127.0.0.1 closed keepalive connection

2017/12/27 10:31:08 [info] 9114#100581: *88352 kevent() reported that client 127.0.0.1 closed keepalive connection

2017/12/27 10:31:08 [info] 9117#100460: *88694 kevent() reported that client 127.0.0.1 closed keepalive connection

2017/12/27 10:32:04 [info] 9118#100630: *89473 kevent() reported that client 127.0.0.1 closed keepalive connection



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


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