Never give up on res_mysql_monitor

Configure pacemaker to never give up on the res_mysql_monitor
resource and to recheck 5 seconds after a failure. This is
achieved using migration-threshold and failure-timeout
options *1.

*1 https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_failure_response.html

Change-Id: If19bea77eb5dee9e9eeff105ab98dce1b2de9f74
Closes-Bug: #1837401
This commit is contained in:
Liam Young 2019-07-24 10:29:12 +00:00 committed by Chris MacNaughton
parent c5b4f7d162
commit 9844f2fd3e
2 changed files with 6 additions and 3 deletions

View File

@ -159,7 +159,8 @@ RES_MONITOR_PARAMS = ('params user="sstuser" password="%(sstpass)s" '
'max_slave_lag="5" '
'cluster_type="pxc" '
'op monitor interval="1s" timeout="30s" '
'OCF_CHECK_LEVEL="1"')
'OCF_CHECK_LEVEL="1" '
'meta migration-threshold=INFINITY failure-timeout=5s')
MYSQL_SOCKET = "/var/run/mysqld/mysqld.sock"

View File

@ -147,7 +147,8 @@ class TestHARelation(CharmTestCase):
'cluster_type="pxc" '
'op monitor interval="1s" '
'timeout="30s" '
'OCF_CHECK_LEVEL="1"')},
'OCF_CHECK_LEVEL="1" '
'meta migration-threshold=INFINITY failure-timeout=5s')},
'locations': {
'loc_mysql': (
'grp_mysql_vips '
@ -193,7 +194,8 @@ class TestHARelation(CharmTestCase):
'cluster_type="pxc" '
'op monitor interval="1s" '
'timeout="30s" '
'OCF_CHECK_LEVEL="1"')},
'OCF_CHECK_LEVEL="1" '
'meta migration-threshold=INFINITY failure-timeout=5s')},
'locations': {
'loc_mysql': (
'grp_mysql_hostnames '