Increase worker connections and update upstream settings
This commit is contained in:
parent
bb80471b2a
commit
7e9251be64
14
nginx.conf
14
nginx.conf
@ -1,4 +1,6 @@
|
||||
events {}
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
access_log off;
|
||||
@ -8,6 +10,8 @@ http {
|
||||
least_conn;
|
||||
server api1:9999;
|
||||
server api2:9999;
|
||||
server api3:9999;
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
server {
|
||||
@ -20,10 +24,10 @@ http {
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_store off;
|
||||
proxy_connect_timeout 100ms;
|
||||
proxy_send_timeout 2s;
|
||||
proxy_read_timeout 2s;
|
||||
proxy_connect_timeout 1s;
|
||||
proxy_send_timeout 5s;
|
||||
proxy_read_timeout 5s;
|
||||
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user