Skip to content

Commit 47000c1

Browse files
committed
FreeBSD also uses HAProxy 2.1+ these days, adjust defaults
1 parent 2555f1f commit 47000c1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

manifests/params.pp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,19 @@
6262
'daemon' => '',
6363
}
6464
$defaults_options = {
65-
'log' => 'global',
66-
'mode' => 'http',
67-
'option' => [
68-
'httplog',
69-
'dontlognull',
65+
'log' => 'global',
66+
'stats' => 'enable',
67+
'option' => ['redispatch'],
68+
'retries' => '3',
69+
'timeout' => [
70+
'http-request 10s',
71+
'queue 1m',
72+
'connect 10s',
73+
'client 1m',
74+
'server 1m',
75+
'check 10s',
7076
],
71-
'retries' => '3',
72-
'redispatch' => '',
73-
'maxconn' => '2000',
74-
'contimeout' => '5000',
75-
'clitimeout' => '50000',
76-
'srvtimeout' => '50000',
77+
'maxconn' => '8000',
7778
}
7879
$config_validate_cmd = '/usr/local/sbin/haproxy -f % -c'
7980
# Single instance:

0 commit comments

Comments
 (0)