Ask Your Question
0

trigger heat autoscale group by an other resource

asked 2016-02-22 07:19:26 -0500

Vizesnyolcas gravatar image

I have a template with an 'OS::Nova::Server' as master-node and an 'OS::Heat::AutoScalingGroup' resource as slave (min_size: 0). master node has different user-data than slaves have. I would like to trigger up/down auto scale process on slaves by watching the master node's utilization.

Is this possible?

Thanks in advance

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2016-09-23 05:09:32 -0500

Reddeuah Raju K gravatar image

updated 2016-09-23 05:10:38 -0500

Using webhook urls you can scaleup or scaledown resources at any time. Below link explains scaleup / scaledown webhook usage. https://bilco105.com/2015/06/08/autoscaling-with-openstack-heat/ (https://bilco105.com/2015/06/08/autos...)

edit flag offensive delete link more
1

answered 2016-02-23 15:58:18 -0500

zaneb gravatar image

updated 2016-05-19 16:08:10 -0500

Yes, you can hook up any Ceilometer alarm you like to the scaling policy, it doesn't have to be one associated with members of the group.

The scaling policy just has a webhook that alarms hit. You grab the URL with {get_attr: [my_scaling_policy, alarm_url]}. You can pass that to any Ceilometer alarm's alarm_actions and that alarm will trigger that scaling policy.

edit flag offensive delete link more

Comments

Can you give me an example, please? I've googled around for weeks but I can't find any.

Thank you!

Vizesnyolcas gravatar imageVizesnyolcas ( 2016-02-24 07:34:54 -0500 )edit
0

answered 2016-04-08 00:19:02 -0500

Qiming gravatar image

Well, we now have the senlin service released with Mitaka. It is a clustering service (http://wiki.openstack.org/wiki/senlin). Requirements like this one can be easily met using senlin now. The scaling can be controlled in very fine granularity: You can specify the profile to use for new nodes added.

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2016-02-22 07:19:26 -0500

Seen: 376 times

Last updated: Sep 23 '16