diff --git a/nginx.conf b/nginx.conf index f4d89b3..8181b76 100644 --- a/nginx.conf +++ b/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; } } -} \ No newline at end of file +}