Commit 998ad9913120a99d0262ba06e47bd6fc121998a0
1 parent
f7dfc39c
fix nginx.conf
Showing
1 changed file
with
7 additions
and
4 deletions
conf/nginx/nginx.conf
1 | 1 | |
2 | 2 | user nginx; |
3 | -worker_processes 1; | |
3 | +worker_processes 8; | |
4 | +worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000; | |
4 | 5 | |
5 | 6 | error_log /var/log/nginx/error.log warn; |
6 | 7 | pid /var/run/nginx.pid; |
7 | 8 | |
9 | +worker_rlimit_nofile 100001; | |
8 | 10 | |
9 | 11 | events { |
12 | + use epoll; | |
10 | 13 | worker_connections 100001; |
11 | 14 | multi_accept on; |
12 | 15 | } |
... | ... | @@ -37,9 +40,9 @@ http { |
37 | 40 | tcp_nodelay on; |
38 | 41 | |
39 | 42 | |
40 | - fastcgi_connect_timeout 3000; | |
41 | - fastcgi_send_timeout 3000; | |
42 | - fastcgi_read_timeout 3000; | |
43 | + fastcgi_connect_timeout 300; | |
44 | + fastcgi_send_timeout 300; | |
45 | + fastcgi_read_timeout 300; | |
43 | 46 | fastcgi_buffer_size 128k; |
44 | 47 | fastcgi_buffers 8 128k; |
45 | 48 | fastcgi_busy_buffers_size 128k; | ... | ... |