Skip to content

Commit

Permalink
change zookeeper readinessProbe to decrease downtime during version u…
Browse files Browse the repository at this point in the history
…pgrade and quorum achievement (#1608)
  • Loading branch information
Slach authored Jan 6, 2025
1 parent a9817c2 commit b72ae0f
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ spec:
- bash
- -c
- "OK=$(echo ruok | nc 127.0.0.1 2181); if [[ \"$OK\" == \"imok\" ]]; then exit 0; else exit 1; fi"
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ spec:
- bash
- -c
- "OK=$(echo ruok | nc 127.0.0.1 2181); if [[ \"$OK\" == \"imok\" ]]; then exit 0; else exit 1; fi"
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ spec:
command:
- /conf/zookeeperReady.sh
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ spec:
command:
- /conf/zookeeperReady.sh
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ spec:
# - bash
# - -xc
# - 'OK=$(exec 3<>/dev/tcp/127.0.0.1/2181 ; printf "ruok" >&3 ; IFS=; tee <&3; exec 3<&- ;); if [[ "$OK" == "imok" ]]; then exit 0; else exit 1; fi'
# initialDelaySeconds: 20
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 15
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ spec:
command:
- /conf/zookeeperReady.sh
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ spec:
# - bash
# - -xc
# - 'OK=$(exec 3<>/dev/tcp/127.0.0.1/2181 ; printf "ruok" >&3 ; IFS=; tee <&3; exec 3<&- ;); if [[ "$OK" == "imok" ]]; then exit 0; else exit 1; fi'
# initialDelaySeconds: 20
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 15
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ spec:
exit 1;
fi
'
initialDelaySeconds: 10
periodSeconds: 60
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 60
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ spec:
command:
- /conf/zookeeperReady.sh
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ spec:
command:
- /conf/zookeeperReady.sh
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
Expand Down

0 comments on commit b72ae0f

Please sign in to comment.