File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ on_node() {
3030 kubectl -n " $NS " exec " $pod " -- " $@ "
3131}
3232
33- # wait_uptodate POD waits up to 120s for both replicas of $RD to reach
33+ # wait_uptodate POD waits up to 180s for both replicas of $RD to reach
3434# disk:UpToDate. Caller defines $RD and the two node names $PRIMARY,
35- # $PEER before calling. Exits non-zero on timeout. Initial sync on
36- # a fresh DRBD resource takes 30-60s on a busy stand; 120s is the
37- # margin.
35+ # $PEER before calling. Exits non-zero on timeout. Initial sync on a
36+ # fresh DRBD resource on a busy QEMU stand can take 60- 120s; 180s is
37+ # the safety margin.
3838wait_uptodate () {
39- local rd=$1 primary=$2 peer=$3 deadline=$(( $(date +% s) + 120 ))
39+ local rd=$1 primary=$2 peer=$3 deadline=$(( $(date +% s) + 180 ))
4040
4141 while (( $(date +% s) < deadline )) ; do
4242 local p1 p2
You can’t perform that action at this time.
0 commit comments