Created
August 2, 2016 08:00
Revisions
-
jerith created this gist
Aug 2, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ diff --git a/mc2/controllers/docker/models.py b/mc2/controllers/docker/models.py index a4bdb36..a4a84e7 100644 --- a/mc2/controllers/docker/models.py +++ b/mc2/controllers/docker/models.py @@ -80,6 +80,13 @@ class DockerController(Controller): } }) + # Some sensible backoff parameters + app_data.update({ + "backoffFactor": 1.5, + "backoffSeconds": 2, + "maxLaunchDelaySeconds": 3600, + }) + if self.marathon_health_check_path: app_data.update({ "ports": [0],