Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit d14fcd4

Browse files
committed
implement review points
1 parent 177365f commit d14fcd4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

deploy/default.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,9 @@ http.retry-count=3
260260
http.open-timeout=5
261261
http.read-timeout=300
262262
http.retry-delay=15
263+
264+
#
265+
# Verified restart config
266+
#
267+
verify_retry_max=5
268+
verify_retry_interval=10

deploy/lib/server_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def restart
566566
old_timestamp = go(%Q{http://#{@properties["ml.server"]}:8001/admin/v1/timestamp}, "get").body
567567
restart_basic
568568
retry_count = 0
569-
retry_max = 5
570-
retry_interval= 10
569+
retry_max = @properties["ml.verify_retry_max"].to_i
570+
retry_interval = @properties["ml.verify_retry_interval"].to_i
571571
new_timestamp = old_timestamp
572572
while retry_count < retry_max do
573573
begin

0 commit comments

Comments
 (0)