Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
implement review points
Browse files Browse the repository at this point in the history
  • Loading branch information
divino committed Apr 25, 2017
1 parent 177365f commit d14fcd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions deploy/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,9 @@ http.retry-count=3
http.open-timeout=5
http.read-timeout=300
http.retry-delay=15

#
# Verified restart config
#
verify_retry_max=5
verify_retry_interval=10
4 changes: 2 additions & 2 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ def restart
old_timestamp = go(%Q{http://#{@properties["ml.server"]}:8001/admin/v1/timestamp}, "get").body
restart_basic
retry_count = 0
retry_max = 5
retry_interval= 10
retry_max = @properties["ml.verify_retry_max"].to_i
retry_interval = @properties["ml.verify_retry_interval"].to_i
new_timestamp = old_timestamp
while retry_count < retry_max do
begin
Expand Down

0 comments on commit d14fcd4

Please sign in to comment.