Advertisement
ikymwb

Untitled

Sep 3rd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <IfModule mpm_prefork_module>
  2. StartServers 10
  3. MinSpareServers 10
  4. MaxSpareServers 20
  5. ServerLimit 2000
  6. MaxRequestWorkers 1500
  7. MaxConnectionsPerChild 10000
  8. </IfModule>
  9.  
  10. <IfModule mpm_worker_module>
  11. StartServers 2
  12. MinSpareThreads 25
  13. MaxSpareThreads 75
  14. ThreadLimit 64
  15. ThreadsPerChild 25
  16. MaxClients 200
  17. MaxRequestsPerChild 4000
  18. </IfModule>
  19. # Server globals
  20. user www-data;
  21. worker_processes auto;
  22. worker_rlimit_nofile 65535;
  23. error_log /var/log/nginx/error.log;
  24. pid /var/run/nginx.pid;
  25.  
  26.  
  27. # Worker config
  28. events {
  29. worker_connections 2048;
  30. use epoll;
  31. multi_accept on;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement