From 7281bb0197ed002d2d1286045bcb9171b1161040 Mon Sep 17 00:00:00 2001 From: Kamil Sambor Date: Fri, 28 Feb 2020 09:25:27 +0100 Subject: [PATCH] Add posibilities to set ovndbs monitor interval Add posibilities to configure ovn dbs monitor interval in tht by OVNDBSPacemakerMonitorInterval (default 30s). Under load, this can create extra stress and since the timeout has already been bumped, it makes sense to bump this interval to a higher value as a trade off between detecting a failure and stressing the service. Depends-On: https://review.opendev.org/#/c/779919/ Change-Id: Id836676826f6e7c97ef8e3d665ab3e467ad055ba (cherry picked from commit 9ece6f97af8837de65f993c56b9ae3041cff6731) --- deployment/ovn/ovn-dbs-pacemaker-puppet.yaml | 10 ++++++++++ .../monitor_interval_ovndbs-b14c886737965300.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 releasenotes/notes/monitor_interval_ovndbs-b14c886737965300.yaml diff --git a/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml b/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml index 24ffe10453..036b41a27e 100644 --- a/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml +++ b/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml @@ -100,6 +100,14 @@ parameters: default: '' description: Override the private key size used when creating the certificate for this service + OVNDBSPacemakerMonitorIntervalSlave: + description: monitor interval for ovn dbs resource in seconds + type: number + default: 30 + OVNDBSPacemakerMonitorIntervalMaster: + description: monitor interval for ovn dbs resource in seconds + type: number + default: 10 conditions: puppet_debug_enabled: {get_param: ConfigDebug} @@ -158,6 +166,8 @@ outputs: - tripleo::profile::pacemaker::ovn_dbs_bundle::dbs_timeout: {get_param: OVNDBSPacemakerTimeout} - tripleo::profile::pacemaker::ovn_dbs_bundle::replication_probe_interval: {get_param: OVNDBSReplicationInterval} - tripleo::profile::pacemaker::ovn_dbs_bundle::force_ocf: true + - tripleo::profile::pacemaker::ovn_dbs_bundle::monitor_interval_slave: {get_param: OVNDBSPacemakerMonitorIntervalSlave} + - tripleo::profile::pacemaker::ovn_dbs_bundle::monitor_interval_master: {get_param: OVNDBSPacemakerMonitorIntervalMaster} - tripleo::haproxy::ovn_dbs_manage_lb: if: - use_external_load_balancer diff --git a/releasenotes/notes/monitor_interval_ovndbs-b14c886737965300.yaml b/releasenotes/notes/monitor_interval_ovndbs-b14c886737965300.yaml new file mode 100644 index 0000000000..12dd7d9145 --- /dev/null +++ b/releasenotes/notes/monitor_interval_ovndbs-b14c886737965300.yaml @@ -0,0 +1,9 @@ +--- +features: + - | + Add posibilities to configure ovn dbs monitor interval + in tht by OVNDBSPacemakerMonitorInterval (default 30s). + Under load, this can create extra stress and since the + timeout has already been bumped, it makes sense to bump + this interval to a higher value as a trade off + between detecting a failure and stressing the service. \ No newline at end of file