diff options
author | Mike Bayer <mbayer@redhat.com> | 2017-04-18 17:35:19 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-06-20 10:48:43 -0400 |
commit | 7e6924c436e9a7581fe37ed46fa21984e4be69bd (patch) | |
tree | be6e605915de238dea9f654b479540edebd5be0e /manifests | |
parent | 65fe0404ae77364480a545141486d4d606d8119b (diff) |
Add maxconn parameter to MySQL / HAProxy
Allows configurability of maxconn as applies to
the MySQL section of the HAProxy config, both
for clustercheck and single node.
Also adds a new test for the haproxy class
overall to exercise options.
Change-Id: I023682dd5e85cc78d6dd3e5214a53863acc4f303
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/haproxy.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/haproxy.pp b/manifests/haproxy.pp index 6da6dcf..436e81a 100644 --- a/manifests/haproxy.pp +++ b/manifests/haproxy.pp @@ -279,6 +279,10 @@ # (optional) Enable check via clustercheck for mysql # Defaults to false # +# [*mysql_max_conn*] +# (optional) Set the maxconn parameter for mysql +# Defaults to undef +# # [*mysql_member_options*] # The options to use for the mysql HAProxy balancer members. # If this parameter is undefined, the actual value configured will depend @@ -602,6 +606,7 @@ class tripleo::haproxy ( $ironic_inspector = hiera('ironic_inspector_enabled', false), $mysql = hiera('mysql_enabled', false), $mysql_clustercheck = false, + $mysql_max_conn = undef, $mysql_member_options = undef, $rabbitmq = false, $etcd = hiera('etcd_enabled', false), @@ -1314,6 +1319,7 @@ class tripleo::haproxy ( 'timeout server' => '90m', 'stick-table' => 'type ip size 1000', 'stick' => 'on dst', + 'maxconn' => $mysql_max_conn } if $mysql_member_options { $mysql_member_options_real = $mysql_member_options @@ -1324,6 +1330,7 @@ class tripleo::haproxy ( $mysql_listen_options = { 'timeout client' => '90m', 'timeout server' => '90m', + 'maxconn' => $mysql_max_conn } if $mysql_member_options { $mysql_member_options_real = $mysql_member_options |