Skip to content

Commit 870bf4b

Browse files
committed
FreeBSD also uses HAProxy 2.1+ these days, adjust defaults
1 parent 1b1c22f commit 870bf4b

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
@@ -63,18 +63,19 @@
6363
'daemon' => '',
6464
}
6565
$defaults_options = {
66-
'log' => 'global',
67-
'mode' => 'http',
68-
'option' => [
69-
'httplog',
70-
'dontlognull',
66+
'log' => 'global',
67+
'stats' => 'enable',
68+
'option' => ['redispatch'],
69+
'retries' => '3',
70+
'timeout' => [
71+
'http-request 10s',
72+
'queue 1m',
73+
'connect 10s',
74+
'client 1m',
75+
'server 1m',
76+
'check 10s',
7177
],
72-
'retries' => '3',
73-
'redispatch' => '',
74-
'maxconn' => '2000',
75-
'contimeout' => '5000',
76-
'clitimeout' => '50000',
77-
'srvtimeout' => '50000',
78+
'maxconn' => '8000',
7879
}
7980
$config_validate_cmd = '/usr/local/sbin/haproxy -f % -c'
8081
# Single instance:

0 commit comments

Comments
 (0)