From 47000c1419ad3bcceeaac62045cf8157d1afb9ec Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Fri, 2 Feb 2024 12:40:04 +0100 Subject: [PATCH] FreeBSD also uses HAProxy 2.1+ these days, adjust defaults --- manifests/params.pp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 70b52397..b31ca6b2 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -62,18 +62,19 @@ 'daemon' => '', } $defaults_options = { - 'log' => 'global', - 'mode' => 'http', - 'option' => [ - 'httplog', - 'dontlognull', + 'log' => 'global', + 'stats' => 'enable', + 'option' => ['redispatch'], + 'retries' => '3', + 'timeout' => [ + 'http-request 10s', + 'queue 1m', + 'connect 10s', + 'client 1m', + 'server 1m', + 'check 10s', ], - 'retries' => '3', - 'redispatch' => '', - 'maxconn' => '2000', - 'contimeout' => '5000', - 'clitimeout' => '50000', - 'srvtimeout' => '50000', + 'maxconn' => '8000', } $config_validate_cmd = '/usr/local/sbin/haproxy -f % -c' # Single instance: