Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Scale Group size down to 0 #717

@wongwill86

Description

@wongwill86

Hello,

There are cases in which I would like a group to be scaled down to 0, i.e. for autoscaling. but right now i think https://github.com/docker/infrakit/blob/master/pkg/plugin/group/group.go#L344 is preventing me from doing that.

Group swarm-workers at 0 instancesCRIT[10-05|22:23:28] error executing                          module=main cmd=infrakit err="Allocation must not be blank" fn=main.main
Allocation must not be blank

I also tried using destroy-instances but all i get is:

infrakit group destroy-instances swarm-workers
Initiated.

but the instances are never destroyed.

obviously i can destroy the group altogether but when i want to scale back up again i would then have to recommit the groups file which isn't ideal.

It would be nice if we can scale the group down to 0.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions