Ask Your Question
3

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 openstack.org but found it hard to get the answers for these questions there.

edit retag flag offensive close merge delete

Comments

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 ( 2014-10-14 01:50:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

tengqim 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

Your Answer

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

Add Answer

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
2 followers

Stats

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

Seen: 1,557 times

Last updated: Feb 12