{"action":"opened","issue":{"url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/163","repository_url":"https://api.github.com/repos/mesosphere/marathon-lb","labels_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/163/comments","events_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/163/events","html_url":"https://github.com/mesosphere/marathon-lb/issues/163","id":150122802,"number":163,"title":"Use TASK_KILLING to suppress backends","user":{"login":"tadanki","id":533826,"avatar_url":"https://avatars.githubusercontent.com/u/533826?v=3","gravatar_id":"","url":"https://api.github.com/users/tadanki","html_url":"https://github.com/tadanki","followers_url":"https://api.github.com/users/tadanki/followers","following_url":"https://api.github.com/users/tadanki/following{/other_user}","gists_url":"https://api.github.com/users/tadanki/gists{/gist_id}","starred_url":"https://api.github.com/users/tadanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadanki/subscriptions","organizations_url":"https://api.github.com/users/tadanki/orgs","repos_url":"https://api.github.com/users/tadanki/repos","events_url":"https://api.github.com/users/tadanki/events{/privacy}","received_events_url":"https://api.github.com/users/tadanki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T16:23:56Z","updated_at":"2016-04-21T16:23:56Z","closed_at":null,"body":"This is a proposal for fixing an issue people have reported a few times earlier: like #129 \r\n\r\nI requested the update of Marathon to allow to propagate the TASK_KILLING state offered by Mesos 0.28. This is already moving and should be available really soon on Marathon (nightly or next build). \r\n\r\nRunning Marathon with the TASK_KILLING feature enabled, allows us to now listen for that event to show up on the subscription of events and to use this information to suppress the generation of backends  on reload. We have built this out and looks decent in our tests. For those running docker containers, it is possible to delay the termination of the container by using Mesos Slave Option: --docker_stop_timeout=5s  to accord marathon-lb's reload enough time to completely drain before letting the docker container die.\r\n\r\nWondering if this fix is along the lines that you guys are thinking (?). I ll try to get a pull request in soon so I can get some eyes on this."}}