Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 795bc9f

Browse files
author
Ben Hyland
committed
Extend mongo healthcheck timeout for restarts to 10s
1 parent 48b05ec commit 795bc9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def safe_reboot():
202202
if i_am_primary(primary):
203203
execute(step_down_primary)
204204

205-
for i in range(5):
205+
for i in range(10):
206206
if cluster_is_ok() and not i_am_primary():
207207
break
208208
sleep(1)

0 commit comments

Comments
 (0)