Add replication_probe_interval for ovsdbs
Add posibilities to configure replication_probe_interval for ovsdb-server. It configure probe interval for connection for ovsdb-server when it is in backup mode and connects to the active ovsdb-server for replication Change-Id: I80c2377ea0223f0003e8e0982f1bc3c1b32b6d06
This commit is contained in:
parent
82cb4dfef5
commit
5ffbfbb884
|
@ -119,6 +119,11 @@
|
||||||
# (Optional) monitor interval for ovn dbs resource
|
# (Optional) monitor interval for ovn dbs resource
|
||||||
# Defaults to 30
|
# Defaults to 30
|
||||||
#
|
#
|
||||||
|
# [*replication_probe_interval*]
|
||||||
|
# (Optional) probe interval for ovsdb-server. It configure probe interval for connection for ovsdb-server when it is
|
||||||
|
# in backup mode and connects to the active ovsdb-server for replication
|
||||||
|
# Defaults to 60000
|
||||||
|
#
|
||||||
|
|
||||||
class tripleo::profile::pacemaker::ovn_dbs_bundle (
|
class tripleo::profile::pacemaker::ovn_dbs_bundle (
|
||||||
$ovn_dbs_docker_image = undef,
|
$ovn_dbs_docker_image = undef,
|
||||||
|
@ -144,7 +149,7 @@ class tripleo::profile::pacemaker::ovn_dbs_bundle (
|
||||||
$force_nic = hiera('tripleo::pacemaker::force_nic', undef),
|
$force_nic = hiera('tripleo::pacemaker::force_nic', undef),
|
||||||
$monitor_interval_master = 10,
|
$monitor_interval_master = 10,
|
||||||
$monitor_interval_slave = 30,
|
$monitor_interval_slave = 30,
|
||||||
|
$replication_probe_interval = 60000,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||||
|
@ -235,7 +240,7 @@ class tripleo::profile::pacemaker::ovn_dbs_bundle (
|
||||||
$ovn_dbs_vip_norm = normalize_ip_for_uri($ovn_dbs_vip)
|
$ovn_dbs_vip_norm = normalize_ip_for_uri($ovn_dbs_vip)
|
||||||
$resource_params = "master_ip=${ovn_dbs_vip_norm} nb_master_port=${nb_db_port} \
|
$resource_params = "master_ip=${ovn_dbs_vip_norm} nb_master_port=${nb_db_port} \
|
||||||
sb_master_port=${sb_db_port} manage_northd=yes inactive_probe_interval=180000 \
|
sb_master_port=${sb_db_port} manage_northd=yes inactive_probe_interval=180000 \
|
||||||
listen_on_master_ip_only=${listen_on_master_ip_only}"
|
listen_on_master_ip_only=${listen_on_master_ip_only} inactive_probe_interval_to_master=${replication_probe_interval}"
|
||||||
$ovn_dbs_location_rule = {
|
$ovn_dbs_location_rule = {
|
||||||
resource_discovery => 'exclusive',
|
resource_discovery => 'exclusive',
|
||||||
score => 0,
|
score => 0,
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add posibilities to configure replication_probe_interval for ovsdb-server.
|
||||||
|
It configure probe interval for connection for ovsdb-server when it is
|
||||||
|
in backup mode and connects to the active ovsdb-server for replication
|
Loading…
Reference in New Issue