Skip to content

Instantly share code, notes, and snippets.

@jerith
Created August 2, 2016 08:00
Show Gist options
  • Save jerith/0517cdae12ac5a1305fbbfed7016575d to your computer and use it in GitHub Desktop.
Save jerith/0517cdae12ac5a1305fbbfed7016575d to your computer and use it in GitHub Desktop.
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],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment