https://blueprints.launchpad.net/sahara/+spec/decommission-specific-instance
When facing issues with a cluster it can be useful to remove an specific instance. The way that Sahara is constructed today allows the user to scale a cluster down but it will choose a random instance from the selected node group to be removed. We want to give the users the opportunity to choose which instance(s) he/she would like to remove from the cluster.
Users may need to remove specific node to make cluster healthier. This is not possible today.
We will add the possibility for the user to choose the specific instance to remove from the cluster.
After selecting the node group from which the instance will be removed the user will be allowed to choose the instance or instances to be removed.
We will also allow wildcard removal, if the user wants to randomly select the instance he can just leave it blank as well as if more than one instance is being deleted the user will be able to choose each instance to be deleted or just a subset and Sahara will choose the rest.
Keep randomly selecting instance to be scaled down.
None
We will change the body request for scale cluster.
Currently the body should be like this:
}
],
}
]
}
We will change the second part to support an extra parameter:
}
],
}
]
}
In case the user does not specify instances to be removed the parameter will not be passed and we will act on removing with the current approach.
CLI command will have a new option to select instances.
None
None
None
We will need to add a place for user to select the instances to be removed. It can be after the NG selection and we add the number of selector of instances to be removed with the option to leave it blank.
None
Unit tests will be needed.
Nothing out of the ordinary, but important to keep in mind both user and developer perspective.
None
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.