From 2578593b7f90e5280f321f53e7bb287ccb1ff72d Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:53:30 +0700 Subject: [PATCH] Reduce HAProxy client and server timeouts to 1 minute (#878) Reduced timeout client and timeout server from 1 hour to 1 minute. This change only affects idle connections. Active sessions where data is being transmitted are not impacted by this timeout. This change aims to reduce the duration of idle sessions, allowing for more efficient resource utilization and better traffic distribution across replicas. --- automation/vars/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/vars/main.yml b/automation/vars/main.yml index dcc3ca1f9..78f9bc64e 100644 --- a/automation/vars/main.yml +++ b/automation/vars/main.yml @@ -42,8 +42,8 @@ haproxy_maxconn: master: 10000 replica: 10000 haproxy_timeout: - client: "60m" - server: "60m" + client: "60s" + server: "60s" # Optionally declare log format for haproxy. # Uncomment following lines (and remove extra space in front of variable definition) for JSON structured log format. # haproxy_log_format: "{