From f621024ea33509e77eca87acf47e84691351b84d Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Thu, 16 Jul 2015 14:11:18 +0200 Subject: Add param to configure HAProxy default maxconn (per frontend) The default per frontend maxconn is set to 2000, which can easily be reached with modern hardware with multiple logic cores; this change adds a parameter to configure the default maxconn value, default it to 4096 and also increases the global maxconn to 20480 to preserve the 1:5 ratio. Change-Id: I3fffc51ecc704ceccb86ca008ecba02578c29eb5 --- manifests/loadbalancer.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index 589d852..a40c7c0 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -29,7 +29,11 @@ # # [*haproxy_global_maxconn*] # The value to use as maxconn in the haproxy global config section. -# Defaults to 10000 +# Defaults to 20480 +# +# [*haproxy_default_maxconn*] +# The value to use as maxconn in the haproxy default config section. +# Defaults to 4096 # # [*controller_host*] # (Deprecated)Host or group of hosts to load-balance the services @@ -231,7 +235,8 @@ class tripleo::loadbalancer ( $storage_mgmt_virtual_ip = false, $manage_vip = true, $haproxy_service_manage = true, - $haproxy_global_maxconn = 10000, + $haproxy_global_maxconn = 20480, + $haproxy_default_maxconn = 4096, $controller_host = undef, $controller_hosts = undef, $controller_hosts_names = undef, @@ -612,6 +617,7 @@ class tripleo::loadbalancer ( 'retries' => '3', 'option' => [ 'tcpka', 'tcplog' ], 'timeout' => [ 'http-request 10s', 'queue 1m', 'connect 10s', 'client 1m', 'server 1m', 'check 10s' ], + 'maxconn' => $haproxy_default_maxconn, }, } -- cgit 1.2.3-korg