Skip to content

Instantly share code, notes, and snippets.

@jerith
Created August 2, 2016 08:00

Revisions

  1. jerith created this gist Aug 2, 2016.
    18 changes: 18 additions & 0 deletions *vc-diff*.diff
    Original 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],