Browse Source

Merge "Adjust HA-proxy config for slapd service."

Jenkins 2 years ago
parent
commit
3227f50ed8

+ 10
- 7
deployment_scripts/puppet/modules/plugin_ldap/manifests/ldap_proxy_init.pp View File

@@ -62,14 +62,17 @@ class plugin_ldap::ldap_proxy_init (
62 62
     internal_virtual_ip    => $internal_virtual_ip,
63 63
     ipaddresses            => $controller_ip,
64 64
     server_names           => $controller_nodes,
65
+    order                  => '180',
66
+    listen_port            => '389',
67
+    define_backups         => true,
65 68
     haproxy_config_options => {
66
-      mode   => 'tcp',
67
-      stats  => 'enable',
68
-      option => ['ldap-check',]
69
+      option         => ['tcplog','clitcpka','srvtcpka', 'ldap-check'],
70
+      balance        => 'leastconn',
71
+      mode           => 'tcp',
72
+      'timeout server' => '28801s',
73
+      'timeout client' => '28801s',
69 74
     },
70
-    balancermember_options => 'maxconn 10000 check',
71
-    order       => '180',
72
-    listen_port => '389',
73
-  } ~> Service<| title == 'haproxy' |>
75
+    balancermember_options => 'check inter 20s fastinter 2s downinter 2s rise 3 fall 3',
76
+    } ~> Service<| title == 'haproxy' |>
74 77
 
75 78
 }

Loading…
Cancel
Save