Skip to content

Marathon: Provide command to clean empty groups #103

@andygrunwald

Description

@andygrunwald

When you deploy services on Marathon and kill them later, the namespace / group will stay.
If no app will be deployed in this group later on, this group will stay empty forever.

See

screen shot 2017-11-22 at 09 37 24

Current Behavior

After time your Marathon instance will have several empty groups in the UI / API.

Possible Solution

Provide Framework (Marathon / Chronos) specific commands.
For this request it would be the /v2/groups/{group_id}/ DELETE command descibed in https://mesosphere.github.io/marathon/api-console/index.html

So the descriptive workflow would be

  • Get all groups from the server
  • Check if they are empty
  • When they are empty, delete the group

Steps to Reproduce (for bugs)

  1. Deploy a service on Marathon with ID /foo/my-service
  2. Delete the service from marathon
  3. The empty group /foo will stay

Your Environment

  • Chapi version: master (Rev: c683314)
  • PHP version: v7.1.11
  • Operating System and version: Mac OSx
  • Mesos version: v1.1.0
  • Marathon version: v 1.4.1
  • Chronos version: -

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions