Allow setting gmcast.peer_timeout value

In some resource constrained environments particularly during deploy
time percona-cluster nodes can experience time outs during inter-node
communication.

This changes makes the gmcast.peer_timeout configurable based on the
galara cluster documentation:
http://galeracluster.com/documentation-webpages/galeraparameters.html

Warning: Changing this value from the default may have unintended
consequences. This should only be used when constraint's call for it.

Closes-Bug: #1742683
Change-Id: If93d6ba9d0e99b6af59358a7f3ea40e3aa2a6dbc
This commit is contained in:
David Ames
2018-02-06 15:24:25 -08:00
parent 295b05e14c
commit c82ca2be29
4 changed files with 68 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ from percona_utils import (
LeaderNoBootstrapUUIDError,
update_root_password,
cluster_wait,
get_wsrep_provider_options,
)
from charmhelpers.core.unitdata import kv
@@ -197,11 +198,14 @@ def render_config(clustered=False, hosts=None):
# See lp 1380747 for more info. This is intended as a stop gap until
# percona package is fixed to support ipv6.
context['bind_address'] = '::'
context['wsrep_provider_options'] = 'gmcast.listen_addr=tcp://:::4567;'
context['ipv6'] = True
else:
context['ipv6'] = False
wsrep_provider_options = get_wsrep_provider_options()
if wsrep_provider_options:
context['wsrep_provider_options'] = wsrep_provider_options
context.update(PerconaClusterHelper().parse_config())
render(os.path.basename(config_file),
config_file, context, perms=0o444)