Skip to content

Commit

Permalink
fix: disable ovn-nb inactivity_probe
Browse files Browse the repository at this point in the history
The ovn-nbctl daemon in kube-ovn-controller need to keep a long connection, the default inactivity_probe will drop the connection.
  • Loading branch information
oilbeater committed Feb 10, 2020
1 parent cbdfa94 commit c88221e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/images/start-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ trap quit EXIT
if [[ -z "$NODE_IPS" ]]; then
/usr/share/openvswitch/scripts/ovn-ctl restart_northd
ovn-nbctl set-connection ptcp:"${DB_NB_PORT}":["${DB_NB_ADDR}"]
ovn-nbctl set Connection . inactivity_probe=0
ovn-sbctl set-connection ptcp:"${DB_SB_PORT}":["${DB_SB_ADDR}"]
ovn-sbctl set Connection . inactivity_probe=0
else
Expand Down
2 changes: 1 addition & 1 deletion yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
- -w3
- 127.0.0.1
- "10660"
initialDelaySeconds: 30
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
command:
- sh
- /kube-ovn/kube-ovn-controller-healthcheck.sh
initialDelaySeconds: 30
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
nodeSelector:
Expand Down

0 comments on commit c88221e

Please sign in to comment.