title: Requests through Nginx-uwsgi-Django are so slow
body: <p>I thought using Nginx-uwsgi-Django triad will be much better and faster than Apache/mod_wsgi combination, but it seems like there is something not right. When I make a regular web request to Nginx, and monitor uwsgi logs I see this:</p>
  
  <p><code>[pid: 15529|app: 0|req: 1/1] 172.28.128.1 () {40 vars in 624 bytes} [Wed Aug 27 12:06:23 2014] GET / =&gt; generated 1757 bytes in 2262 msecs (HTTP/1.1 200) 2 headers in 73 bytes (1 switches on core 0)</code></p>
  
  <p>NOTICE here the 2262 msecs latency</p>
  
  <p>And here is my uwsgi configuration:</p>
  
  <pre><code>[uwsgi]
  chdir           = /vagrant/one/main_project
  
  # Django's wsgi file (path starting from chdir/)
  #wsgi-file       = /vagrant/one/main_project/main_project/wsgi.py
  
  enable-threads = true
  
  #pythonpath      = /vagrant/one/bin/python2.7
  
  # the virtualenv (full path)
  home              = /vagrant/one/
  
  
  # process-related settings
  # master
  master          = true
  # maximum number of worker processes
  processes       = 10
  # the socket (use the full path to be safe)
  socket           = /tmp/uwsgi.sock
  
  # ... with appropriate permissions - may be needed      -
  chmod-socket    = 666
  # clear environment on exit
  vacuum          = true
  </code></pre>
  
  <p>After all, I run it like this:</p>
  
  <p><code>uwsgi --ini uwsgi_config_one.ini -w  main_project.wsgi</code></p>
  
  <p>it works fine but with 2262 msecs latency ... Why would that happen?</p>