From 7e9251be64772bd2250dfebf94887b4003e27d4a Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 17 Aug 2025 04:30:51 -0400 Subject: [PATCH] Increase worker connections and update upstream settings --- nginx.conf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 +}