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

marathon taskKillGracePeriodSeconds not work with mesos executor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Mesos Integration
    • Labels:

      Description

      Launch a app in marathon with such configuration:

       

      ```

      },
      "labels": {},
      "ipAddress": null,
      "version": "2017-12-08T01:10:42.805Z",
      "residency": null,
      "secrets": {},
      "taskKillGracePeriodSeconds": 60,
      "unreachableStrategy": {
      "inactiveAfterSeconds": 0,
      "expungeAfterSeconds": 0
      },
      "killSelection": "YOUNGEST_FIRST",
      "ports": [
      11231,

      ```

       

      Check the mesos side, it have following 

       

      root 64722 1626 0 09:10 ? 00:00:10 mesos-docker-executor .....  --stop_timeout=0ns
      root 64779 64722 0 09:10 ? 00:00:00 docker -H unix:///var/run/docker.sock run –  .... mycontainer

       

      When kill the container from marathon side,  it would find that:  After SIGTERM send out, about 10 seconds, the SIGKILL is sent,  so the taskKillGracePeriodSeconds not work at all. (the 10 seconds, should be the default in system side)

       

      Could you help how to make grace period second work  ?

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                HackToday Kai Qiang Wu
                Team:
                Orchestration Team
                Watchers:
                Kai Qiang Wu
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: