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