Add the ability to configure ovn-remote-probe-interval

This parameter sets inactive probe interval of the JSON
session from ovn-metadata to the OVN SB database.
By default this it is 5s which not be sufficient in
loaded systems or during high control-plane activity spikes,
leading to unnecessary reconnections to OVSDB server.
Now it is extended by default to 1 min and it
is configurable.

Depends-On: https://review.opendev.org/#/c/695577
Change-Id: I0ff2f1b01abc4bad74532f4954c80509c02a2375
This commit is contained in:
Flavio Fernandes 2019-11-21 15:23:57 -05:00
parent d02be09bda
commit 373ad6a6c0
2 changed files with 26 additions and 11 deletions

View File

@ -49,6 +49,10 @@
# for more details.
# Defaults to hiera('step')
#
# [*ovn_remote_probe_interval*]
# (optional) Set probe interval, based on user configuration, value is in ms
# Defaults to 60000
#
class tripleo::profile::base::neutron::ovn_metadata (
$ovn_db_host = hiera('ovn_dbs_vip'),
$ovn_sb_port = hiera('ovn::southbound::port'),
@ -57,6 +61,7 @@ class tripleo::profile::base::neutron::ovn_metadata (
$ovn_sb_ca_cert = $::os_service_default,
$protocol = 'tcp',
$step = Integer(hiera('step')),
$ovn_remote_probe_interval = 60000,
) {
if $step >= 4 {
include ::tripleo::profile::base::neutron
@ -65,6 +70,7 @@ class tripleo::profile::base::neutron::ovn_metadata (
ovn_sb_private_key => $ovn_sb_private_key,
ovn_sb_certificate => $ovn_sb_certificate,
ovn_sb_ca_cert => $ovn_sb_ca_cert,
ovn_remote_probe_interval => $ovn_remote_probe_interval,
}
Service<| title == 'controller' |> -> Service<| title == 'ovn-metadata' |>
}

View File

@ -0,0 +1,9 @@
---
features:
- |
This parameter sets inactive probe interval of the JSON session
from ovn-metadata to the OVN SB database. By default this it
is 5s which not be sufficient in loaded systems or during high
control-plane activity spikes, leading to unnecessary reconnections
to OVSDB server. Now it is extended by default to 1 min and it is
configurable by param OVNRemoteProbeInterval.