# Longer upstream request time after upgrade to Nginx \> 1.4

**URL:** <https://www.ruby-forum.com/t/longer-upstream-request-time-after-upgrade-to-nginx-1-4/243089>\
**Category:** NGINX\
**Created:** [August 20, 2015, 5:50pm UTC](https://www.ruby-forum.com/t/longer-upstream-request-time-after-upgrade-to-nginx-1-4/243089 "2015-08-20T17:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 20, 2015, 5:50pm UTC](https://www.ruby-forum.com/t/longer-upstream-request-time-after-upgrade-to-nginx-1-4/243089/1 "2015-08-20T17:50:47Z")

</div>

Hi,

first, the setup: I have 2 identical maschines running latest CentOS 6.6  
and uWSGI 2.0.10, both machines had nginx-1.4.7-1.el6.ngx.x86\_64  
installed. I saw almost identical values for $request\_time in the Nginx  
log files of both machines.

We are using Nginx to serve some static files and pass requests to an  
uWSGI application.

The relevant configuration is as follows:

upstream backend {  
server unix:///tmp/backend\_blue.socket max\_fails=0;  
server unix:///tmp/backend\_blue.socket max\_fails=0;  
}

location / {  
proxy\_next\_upstream error timeout http\_502;  
proxy\_set\_header Host $host;  
include uwsgi\_params;  
uwsgi\_param HTTP\_X\_REQUEST\_ID $uuid;  
uwsgi\_param HTTPS on;  
uwsgi\_buffering off;  
uwsgi\_pass backend;  
}

location /static {  
alias /home/webadmin/blue/static;  
index index.php;  
if ( !-e $request\_filename) {  
rewrite ^(/static._)/test\_\_(._)$ $1/$2 redirect;  
}  
}

After upgrading Nginx to one of the following stable releases I’ve  
discovered that the values for $request\_time have significantly  
increased (almost twice as high) but only for upstream requests.  
There are no differences in $request\_time for static requests.

Affected packages:  
nginx-1.6.0-1.el6.ngx.x86\_64  
nginx-1.6.1-1.el6.ngx.x86\_64  
nginx-1.6.2-1.el6.ngx.x86\_64  
nginx-1.6.3-1.el6.ngx.x86\_64  
nginx-1.8.0-1.el6.ngx.x86\_64

No further changes were made, only an update of nginx RPM. uWSGI itself  
reports unchanged times to generate responses.

Any idea?
