Created
June 5, 2020 09:54
-
-
Save rsevilla87/424268682aaf7944a4e8a0ecc125ad4c to your computer and use it in GitHub Desktop.
OVN election timers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for p in $(oc get pod -o name -l app=ovnkube-master); do | |
oc exec -n openshift-ovn-kubernetes -c nbdb $p -- ovn-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/change-election-timer OVN_Northbound 2000 | |
oc exec -n openshift-ovn-kubernetes -c nbdb $p -- ovn-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/change-election-timer OVN_Northbound 4000 | |
oc exec -n openshift-ovn-kubernetes -c nbdb $p -- ovn-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/change-election-timer OVN_Northbound 8000 | |
oc exec -n openshift-ovn-kubernetes -c nbdb $p -- ovn-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/change-election-timer OVN_Northbound 16000 | |
oc exec -n openshift-ovn-kubernetes -c sbdb $p -- ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/change-election-timer OVN_Southbound 2000 | |
oc exec -n openshift-ovn-kubernetes -c sbdb $p -- ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/change-election-timer OVN_Southbound 4000 | |
oc exec -n openshift-ovn-kubernetes -c sbdb $p -- ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/change-election-timer OVN_Southbound 8000 | |
oc exec -n openshift-ovn-kubernetes -c sbdb $p -- ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/change-election-timer OVN_Southbound 16000 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment