Merge "Make promote timeout configurable"
This commit is contained in:
commit
5e3e9cb425
manifests/profile/pacemaker/database
@ -97,6 +97,11 @@
|
||||
# (Optional) Maximum value for open-files-limit
|
||||
# Defaults to 16384
|
||||
#
|
||||
# [*promote_timeout*]
|
||||
# (Optional) Maximum time in second for starting up a galera server
|
||||
# before pacemaker considers the operation timed out.
|
||||
# Defaults to 300
|
||||
#
|
||||
class tripleo::profile::pacemaker::database::mysql (
|
||||
$bootstrap_node = hiera('mysql_short_bootstrap_node_name'),
|
||||
$bind_address = $::hostname,
|
||||
@ -113,6 +118,7 @@ class tripleo::profile::pacemaker::database::mysql (
|
||||
$step = Integer(hiera('step')),
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
$open_files_limit = 16384,
|
||||
$promote_timeout = 300,
|
||||
) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
@ -252,7 +258,7 @@ class tripleo::profile::pacemaker::database::mysql (
|
||||
if $pacemaker_master {
|
||||
pacemaker::resource::ocf { 'galera' :
|
||||
ocf_agent_name => 'heartbeat:galera',
|
||||
op_params => 'promote timeout=300s on-fail=block',
|
||||
op_params => "promote timeout=${promote_timeout}s on-fail=block",
|
||||
master_params => '',
|
||||
meta_params => "master-max=${galera_nodes_count} ordered=true",
|
||||
resource_params => "additional_parameters='--open-files-limit=${open_files_limit}' enable_creation=true wsrep_cluster_address='gcomm://${galera_nodes}' cluster_host_map='${cluster_host_map}'",
|
||||
|
@ -145,9 +145,15 @@
|
||||
# (Optional) Maximum value for open-files-limit
|
||||
# Defaults to 16384
|
||||
#
|
||||
# [*promote_timeout*]
|
||||
# (Optional) Maximum time in second for starting up a galera server
|
||||
# before pacemaker considers the operation timed out.
|
||||
# Defaults to 300
|
||||
#
|
||||
# [*force_ocf*]
|
||||
# (optional) Use --force when creating the ocf resource via pcs
|
||||
# Defaults to false
|
||||
#
|
||||
class tripleo::profile::pacemaker::database::mysql_bundle (
|
||||
$mysql_docker_image = undef,
|
||||
$control_port = 3123,
|
||||
@ -175,6 +181,7 @@ class tripleo::profile::pacemaker::database::mysql_bundle (
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
$step = Integer(hiera('step')),
|
||||
$open_files_limit = 16384,
|
||||
$promote_timeout = 300,
|
||||
$force_ocf = false,
|
||||
) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
@ -483,7 +490,7 @@ MYSQL_HOST=localhost\n",
|
||||
ocf_agent_name => 'heartbeat:galera',
|
||||
master_params => '',
|
||||
meta_params => "master-max=${galera_nodes_count} ordered=true container-attribute-target=host",
|
||||
op_params => 'promote timeout=300s on-fail=block',
|
||||
op_params => "promote timeout=${promote_timeout}s on-fail=block",
|
||||
resource_params => "log='/var/log/mysql/mysqld.log' additional_parameters='--open-files-limit=${open_files_limit}' enable_creation=true wsrep_cluster_address='gcomm://${galera_nodes}' cluster_host_map='${cluster_host_map_string}'",
|
||||
tries => $pcs_tries,
|
||||
location_rule => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user