Welcome! Log In Create A New Profile

Advanced

inexplicable epoll delay

Posted by Sergey Smirnov 
inexplicable epoll delay
September 24, 2020 08:32AM
Hello everyone
I use nginx server as a load balancer/
I've just encountered Nginx introduces a delay 5 seconds.

Access log:
192.168.10.86 - - [24/Sep/2020:12:37:58 +0300] "POST .. HTTP/1.1" 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:37:58 +0300] "POST ..200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:37:58 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:37:58 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:37:58 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:38:04 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:38:04 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:38:04 +0300] "POST .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:38:04 +0300] .. 200 0 "-" "-" "-"
192.168.10.86 - - [24/Sep/2020:12:38:04 +0300] .. 200 0 "-" "-" "-"

So there were no responses starting 24/Sep/2020:12:37:58 for 6 seconds.

Also I checked nginx log and found:
2020/09/24 12:37:58 [debug] 18718#0: timer delta: 1
2020/09/24 12:37:58 [debug] 18718#0: worker cycle
2020/09/24 12:37:58 [debug] 18718#0: epoll timer: -1
//6 seconds delay
2020/09/24 12:38:04 [debug] 18718#0: epoll: fd:9 ev:0001 d:00007F344DCE31F0
2020/09/24 12:38:04 [debug] 18718#0: accept on 0.0.0.0:443, ready: 0


Am I correct epoll is the cause of delay? How to fix it?

Thanks.
Attachments:
open | download - nginx.conf (4.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready