Skip to content

Commit

Permalink
Merge pull request #631 from dcbw/db-inactivity-probe
Browse files Browse the repository at this point in the history
Bug 1834473: ovnkube: set NB/SB database inactivity probes to 60 seconds
  • Loading branch information
openshift-merge-robot committed May 11, 2020
2 parents b7ab652 + d70c0c6 commit e5a4fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindata/network/ovn-kubernetes/ovnkube-master.yaml
Expand Up @@ -152,7 +152,7 @@ spec:
MASTER_IP="{{.OVN_MASTER_IP}}"
if [[ "${K8S_NODE_IP}" == "${MASTER_IP}" ]]; then
retries=0
while ! ovn-nbctl --no-leader-only -t 5 set-connection pssl:{{.OVN_NB_PORT}}{{.LISTEN_DUAL_STACK}} -- set connection . inactivity_probe=0; do
while ! ovn-nbctl --no-leader-only -t 5 set-connection pssl:{{.OVN_NB_PORT}}{{.LISTEN_DUAL_STACK}} -- set connection . inactivity_probe=60; do
(( retries += 1 ))
if [[ "${retries}" -gt 40 ]]; then
echo "too many failed ovn-nbctl attempts, giving up"
Expand Down Expand Up @@ -259,7 +259,7 @@ spec:
MASTER_IP="{{.OVN_MASTER_IP}}"
if [[ "${K8S_NODE_IP}" == "${MASTER_IP}" ]]; then
retries=0
while ! ovn-sbctl --no-leader-only -t 5 set-connection pssl:{{.OVN_SB_PORT}}{{.LISTEN_DUAL_STACK}} -- set connection . inactivity_probe=0; do
while ! ovn-sbctl --no-leader-only -t 5 set-connection pssl:{{.OVN_SB_PORT}}{{.LISTEN_DUAL_STACK}} -- set connection . inactivity_probe=60; do
(( retries += 1 ))
if [[ "${retries}" -gt 40 ]]; then
echo "too many failed ovn-sbctl attempts, giving up"
Expand Down

0 comments on commit e5a4fd3

Please sign in to comment.