<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Hello All,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">I have an Nginx reverse proxy connected to uWSGI backend. I have configured nginx to log to a centralized remote syslog service as:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)"><b>error_log syslog:server=<a href="http://example.com:514">example.com:514</a>,tag=nginx_error debug;</b></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">The problem here is that, when I remove the above line from my nginx.conf, the request processing time is becoming very high and It leads to client timeout ( returns HTTP 460 ).<br><br>When I enable logging in my nginx.conf, I do not get HTTP 460 at all. But, there's an extra overhead introduced which Increases the CPU Utilization. What I suspect is that the nginx is sending the HTTP requests to my uWSGI backend little slowly and my uWSGI backend is able to handle them gracefully, write the response back to nginx successfully. The average response time of the backend also spikes to 5x when logging is enabled.<br><br>Once I disable logging, the CPU Utilization decreases while the requests are flooded to uWSGI backend and the backend takes time to return the response within the defined client timeout period. If the request takes time to process and if the client ( Android/iOS app) hasn't received the response, It aborts the connection either when the timeout is reached or if the user cancels the request.<br><br>I'd like to know whether I have to add a proxy buffer to my nginx to queue up requests and send it to my backend instead of overflooding it. Or any other solutions are appreciated.<br></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">I've also attached the log files below. any help is appreciated. Thanks in advance.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Om</p></div>