Service VM "drain" before terminate
Currently there's no option in Sunstone for service VM-ms to gracefully finish serving clients before terminating VMs during auto-scaling down.
I propose optional custom shutdown action in service template with attributes and step duration time (before VM termination).
For example I'd like to trigger external http get/post request to tell loadbalancer not to route new clients (and terminate their tcp connections) to VM-ms which are about to be terminated.
Sure, it all can be done through OneFlow API , but not within Sunstone.
#1 Updated by Ruben S. Montero about 4 years ago
- Tracker changed from Feature to Request
Before moving this to the backlog, Couldn't this be done by hooking in the shutdown process of the VM? You can add a custom script to be executed when the VM enters the desired runlevel. Note also the timeout part is handled by the KVM driver or it could be added to the shutdown script.