From 79f363164ed0c81e4c7603885f8e9815164b2df2 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 30 Jun 2020 07:26:47 -0700 Subject: [PATCH] Increase allowed number of haproxy connections We've set maxconn to 4k concurrent connections on the front side of our haproxy load balancer. Currently that seems to be creating a large backlog of requests. Looking at cacti it appears that we have maybe up to ~6-8 times this amount of overhead in resources on the gitea backends. Be a little conservative and bump this value up by 4x and tune from there. Change-Id: I56d43b52c23f251cc632315c3b57e45541722970 --- playbooks/roles/haproxy/templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/haproxy/templates/haproxy.cfg.j2 b/playbooks/roles/haproxy/templates/haproxy.cfg.j2 index 1c31d07859..5111b31488 100644 --- a/playbooks/roles/haproxy/templates/haproxy.cfg.j2 +++ b/playbooks/roles/haproxy/templates/haproxy.cfg.j2 @@ -2,7 +2,7 @@ global uid 1000 gid 1000 log /dev/log local0 - maxconn 4000 + maxconn 16000 pidfile /var/haproxy/run/haproxy.pid stats socket /var/haproxy/run/stats uid 1000 gid 1000 mode 0600 level admin