Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7767

Dependencies within group not working

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I am attempting service orchestration (analogous to docker-compose) of several micro-services defined in a Marathon application group "my-api" with some interdependencies to be taken under consideration at startup time. Specifically, I want my infrastructure services to become ready before business services are started (i.e. config-registry and security services to be started before billing service). The way I went about it was by creating dependencies for each dependent service like this:

      "dependencies": [
      "/my-api/config-registry-svc",
      "/my-api/security-svc"
      ],

      Both config-service and security-svc have healthchecks defined as such:

      "healthChecks": [

      { "gracePeriodSeconds": 300, "intervalSeconds": 20, "timeoutSeconds": 20, "maxConsecutiveFailures": 6, "portIndex": 0, "path": "/config/application/develop", "protocol": "HTTPS", "ignoreHttp1xx": true }

      ],

      I anticipated that starting the group would result in having infrastructure services come up first and business services get started after their dependencies were satisfied.
      Am I doing this right? Is this form of orchestration currently supported in Marathon Version 1.4.7 ?

      This isssue has been created automatically from Marathon GitHub Issue 5510.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marathon-bot Marathon Bot
              Team:
              Orchestration Team
              Watchers:
              Marathon Bot, Yoni Shafrir
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: