All files from this thread

File Name File Size   Posted by Date  
nginx.conf 615 bytes open | download Om Prakash Shanmugam 07/04/2019 Read message
error.log 2.6 KB open | download Om Prakash Shanmugam 07/04/2019 Read message
July 13, 2019 09:51AM
Hi Maxim,

The nginx reverse proxy and uWSGI runs on the same host. Each nginx reverse proxies are connected to only one single Instance of the uWSGI backend.

But in the uWSGI backend, I'm running 4 workers in total based on the configuration 2 workers can be handled by 1 VCPU. Essentially the Instance I run has 2 VCPUs hence It translates to 4 workers. The listen queue length of my backend is sufficiently high i.e. 4096 and I have set my somaxconn parameter to 32768. So I think everything with respect to the backend seems fine.

Only when I disable logging in nginx I could see this Issue happen. Once I enable it, my hosts never raised Timeout error at all. Also, note that this Issue happens more often when the server is in an Idle state and not when the server is in peak.

--
Om
Subject Author Posted

Nginx request processing is slow when logging disabled Attachments

Om Prakash Shanmugam July 04, 2019 03:38AM

Re: Nginx request processing is slow when logging disabled

Maxim Dounin July 08, 2019 08:52AM

Re: Nginx request processing is slow when logging disabled

heythisisom July 13, 2019 09:50AM

Re: Nginx request processing is slow when logging disabled

heythisisom July 13, 2019 09:51AM

Re: Nginx request processing is slow when logging disabled

Maxim Dounin July 16, 2019 05:28AM

Re: Nginx request processing is slow when logging disabled

heythisisom July 16, 2019 08:48AM

Re: Nginx request processing is slow when logging disabled

Peter Booth via nginx July 16, 2019 02:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
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