diff --git a/hooks/percona_hooks.py b/hooks/percona_hooks.py index 13df074..9ceebc4 100755 --- a/hooks/percona_hooks.py +++ b/hooks/percona_hooks.py @@ -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" diff --git a/unit_tests/test_percona_hooks.py b/unit_tests/test_percona_hooks.py index d41ba73..959e7bc 100644 --- a/unit_tests/test_percona_hooks.py +++ b/unit_tests/test_percona_hooks.py @@ -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 '