From 6735046f89de6b3f4e4f3b985b9cac705d318026 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 19 Mar 2019 22:43:20 +0100 Subject: [PATCH] galera: avoid replacing resources Any restart of the database is going to cause a large downtime, so favoring availability we tell pacemaker to do this as little as possible. Also expire failures after a time of 30 minutes so that the clustering can resume after transient failures. --- chef/cookbooks/mysql/recipes/ha_galera.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chef/cookbooks/mysql/recipes/ha_galera.rb b/chef/cookbooks/mysql/recipes/ha_galera.rb index 07e48df871..bc1f9ed188 100644 --- a/chef/cookbooks/mysql/recipes/ha_galera.rb +++ b/chef/cookbooks/mysql/recipes/ha_galera.rb @@ -203,6 +203,11 @@ "datadir" => node[:database][:mysql][:datadir], "log" => "/var/log/mysql/mysqld.log" }) + meta ({ + "migration-threshold" => "3", + "failure-timeout" => "1800s", + "resource-stickiness" => "100" + }) op primitive_op action :update only_if { CrowbarPacemakerHelper.is_cluster_founder?(node) }