Ask Your Question
0

How does Heat set alarm configuration and get alarm back from Ceilometer?

asked 2016-07-03 14:40:59 -0600

Shayne gravatar image

updated 2016-07-04 00:14:15 -0600

Hi all,

Currently, I am working on Heat auto-scaling. I already read some documents about auto-scaling in Heat. I know that Heat uses Ceilometer API to set alarm configuration and get alarm back from Ceilometer via Webhook. These actions are shown in HOT template (OS::Heat::Ceilometer::Alarm). I tried to look at Heat code but I still cannot get where (or what modules) handle alarm actions. In particularly:

  1. what module will be responsible for creating alarm url which then is received by Ceilometer
  2. what module will receive and handle alarm url triggered from Ceilometer.

Thanks

edit retag flag offensive close merge delete

Comments

Could anyone help me?

Shayne gravatar imageShayne ( 2016-07-04 07:07:55 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-05 02:34:46 -0600

Shaoman Zhang gravatar image
  1. Heat set the alarm policy with OS::Heat::ScalingPolicy, and generate alarm url.
  2. Ceilometer handle the alarm url when the alarm condition is met.
edit flag offensive delete link more

Comments

Thanks.. I am sorry for not being clear! in #2. I mean after Ceilometer handles the alarm url, it has to trigger this url to Heat via Webhook. So, I wonder what module in Heat will receive the alarm url from Ceilometer.

Shayne gravatar imageShayne ( 2016-07-05 03:15:22 -0600 )edit

Heat provides the webhook, and Ceilometer call it when alarm is trigered, Heat need not to get the feedback again.

Shaoman Zhang gravatar imageShaoman Zhang ( 2016-07-05 03:56:24 -0600 )edit

If Heat does not get the feedback, please kindly let me know how and when Heat does auto-scaling. My understanding is that Ceilometer will send a HTTP Post to Heat when CPU reaches to threshold. Is it correct? Thanks.

Shayne gravatar imageShayne ( 2016-07-05 13:13:17 -0600 )edit

Heat provides autoscaling webhook with OS::Heat::ScalingPolicy, and Ceilometer call it directly when alarm happened.

Shaoman Zhang gravatar imageShaoman Zhang ( 2016-07-05 20:34:47 -0600 )edit

Thanks Shaoman, I still get confused because I saw the feedback from Ceilometer in the following link (figure in section 3.1.1). Could you elaborate it? Link: http://www.openstack.cn/?p=4797

Shayne gravatar imageShayne ( 2016-07-05 20:58:25 -0600 )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

2 followers

Stats

Asked: 2016-07-03 14:39:01 -0600

Seen: 627 times

Last updated: Jul 05 '16