How to use Heat to auto scale across multiple datacenters

asked 2014-06-20 00:29:43 -0600

Shardy gravatar image

updated 2014-06-20 16:05:30 -0600

smaffulli gravatar image

I am interested in understanding if I can get alarms on aggregated statistics using Heat. For example, I would want an alarm if an individual VM starts using more than 80% CPU, but for the whole group of VMs I want an alarm if average cpu_util goes over 40%. This is because I expect to have two geographic sites that can back each other up. So 40% or less should be the normal steady state so that if a site goes down the other site can handle the load by going up to 80%.

Also, once an alarm is raised does Heat give me the option to increase resources on a VM or only to create a new instance?

I have already looked at Heat docs on but found it hard to get the answers for these questions there.

edit retag flag offensive close merge delete


We met the same kind of issue, one of the import problem is does ceilometer support multiple datacenters , there is no such use case so far in the official site, if anyone knows please help to share here.

9lives gravatar image9lives ( 2014-10-14 01:50:45 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-12 23:44:56 -0600

Qiming gravatar image

It is possible today with some work. With resource type 'OS::Heat::Stack', you can create two stacks each contain a local resource group and a local ceilometer alarm resource. The alarm resource can be specified to send alarms to a central location where a scaling policy will decide what to do. The ScalingPolicy component is not there in the master, but it won't be difficult to develop one.

Currently, Heat only scales by creating new instances.

edit flag offensive delete link more

answered 2016-03-13 16:53:38 -0600

Sindu gravatar image

Hey, I know this has been a well to re-answer this question. I was just curious to know whether if there is any template/tool supported by openstack in order to auto-scale VMs depending upon the CPU utilization ? Please answer... Thank you

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-06-20 00:29:43 -0600

Seen: 1,770 times

Last updated: Feb 12 '15