Ask Your Question

How can Heat gracefully shutdown a server when scaling down?

asked 2015-07-23 13:19:49 -0500

rpga95 gravatar image

updated 2015-07-29 12:41:26 -0500

zaneb gravatar image


Does anyone know if there are any advanced parameters for Heat Autoscaling, particularly with Downscaling? For example, how to have certain scripts run at shutdown or even to shutdown gracefully rather than hard termination?



edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-28 13:37:51 -0500

zaneb gravatar image

Not as such.

However, you can autoscale entire Heat templates, and you can also create SoftwareDeployment resources that run on the DELETE action. So if you create a template containing both a server and a SoftwareDeployment of the quiescence script you want to run with the action property set to DELETE and use that template as your scaled unit, then the script will run before the server is deleted.

edit flag offensive delete link more


Thanks so much for this! Exactly what I was looking for. I am actually autoscaling a custom nova server template within my template for the autoscalinggroup.


rpga95 gravatar imagerpga95 ( 2015-07-28 14:42:26 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-23 13:19:49 -0500

Seen: 2,942 times

Last updated: Jul 29 '15