From 856dfaea799b5bfb824adef73162f6296e491288 Mon Sep 17 00:00:00 2001 From: Maksym Yatsenko Date: Tue, 5 Jul 2016 11:26:22 +0300 Subject: [PATCH] Adjust HA-proxy config for slapd service. HA-porxy config for slapd service was tuned. Change-Id: I05492ad36bc4be070053ac30ef079dbfc89d42a7 Related-Bug: #1599065 --- .../plugin_ldap/manifests/ldap_proxy_init.pp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/deployment_scripts/puppet/modules/plugin_ldap/manifests/ldap_proxy_init.pp b/deployment_scripts/puppet/modules/plugin_ldap/manifests/ldap_proxy_init.pp index 915696f..040bca2 100644 --- a/deployment_scripts/puppet/modules/plugin_ldap/manifests/ldap_proxy_init.pp +++ b/deployment_scripts/puppet/modules/plugin_ldap/manifests/ldap_proxy_init.pp @@ -62,14 +62,17 @@ class plugin_ldap::ldap_proxy_init ( internal_virtual_ip => $internal_virtual_ip, ipaddresses => $controller_ip, server_names => $controller_nodes, + order => '180', + listen_port => '389', + define_backups => true, haproxy_config_options => { - mode => 'tcp', - stats => 'enable', - option => ['ldap-check',] + option => ['tcplog','clitcpka','srvtcpka', 'ldap-check'], + balance => 'leastconn', + mode => 'tcp', + 'timeout server' => '28801s', + 'timeout client' => '28801s', }, - balancermember_options => 'maxconn 10000 check', - order => '180', - listen_port => '389', - } ~> Service<| title == 'haproxy' |> + balancermember_options => 'check inter 20s fastinter 2s downinter 2s rise 3 fall 3', + } ~> Service<| title == 'haproxy' |> }