Ask Your Question
2

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

Hi,

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?

Thanks,

~RP

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

Comments

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.

~RP

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 2,507 times

Last updated: Jul 29 '15