uwsgi.ini 796 B

12345678910111213141516171819
  1. [uwsgi]
  2. master
  3. ; Increase listen queue used for nginx connecting to uWSGI. This matches
  4. ; net.ipv4.tcp_max_syn_backlog and net.core.somaxconn.
  5. listen = 16384
  6. ; for performance
  7. disable-logging
  8. ; use UNIX sockets instead of TCP loopback for performance
  9. socket = /var/tmp/uwsgi.sock
  10. ; allow nginx to access the UNIX socket
  11. chmod-socket = 666
  12. ; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
  13. ; This is currently disabled because when I tried it with flask, it caused a
  14. ; 20% performance hit. The CPU cores could not be saturated with thunder-lock.
  15. ; I'm not yet sure the full story, so this is presently disabled. Also,
  16. ; disabling this caused bottle to get ~13% faster.
  17. ;thunder-lock
  18. ; used by uwsgi_stop.ini
  19. pidfile = /var/tmp/uwsgi.pid