<div>Agree with ZhiQiang. </div><div><br></div><div>Maybe we could achieve this by heat itself or other project like Mistral, </div><div>but it seems more natural to achieve this through ceilometer alarm system.<span style="background-color: rgb(239, 239, 239); font-size: 12px; line-height: 18px;"></span></div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;">Luo Gangyi<div><div>luogangyi@chinamobile.com</div></div></div></div><div> </div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "ZhiQiang Fan";<aji.zqfan@gmail.com>;</div><div><b>发送时间:</b> 2015年4月29日(星期三) 中午12:23</div><div><b>收件人:</b> "OpenStack Development Mailing List"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>主题:</b> [openstack-dev] [ceilometer] time based auto scaling</div></div><div><br></div><div dir="ltr">Hi devs,<div><br></div><div>I'm thinking to add new type of alarm for time based auto scaling, but not sure if there is a better way to achieve it outside ceilometer scope</div><div><br></div><div>Currently we can auto scaling based on vm load, but it will take several minutes to do it. For the worst case, when the vm load is heavy, ceilometer needs 10 minutes (by default) to collect the performance data, and alarm need 1 minutes to evaluate it, maybe there is evaluation_periods which set to higher that 1 to avoid performance peak. </div><div><br></div><div>So even though we can collect data by 1 minutes, but evaluation periods may be set to 3, so the worst case is after vm load perfomance in high level for 4 minutes, then the alarm is triggered, then heat will expand vm count, nova will take dozens seconds or more to create, finally the service on the in the heat server group will performance bad or unavailable for several minutes, which is not acceptable for some critical applications.</div><div><br></div><div>But if we can know some high load which related with time, for example, 08:00am will be a peak, and after 22:00pm will definitely drop to idel level, then heat can increase some vms at 07:30am, then decrease some vms at 22:00 (or decrease by load as normal routine)</div><div><br></div><div>However, current ceilometer only provide time constraint alarm, which will only evaluate but not guarantee it will be triggered. And heat cannot provide something like timer, but just can wait for the signal.<br></div><div><br></div><div>So I propose to add a new type of alarm, which will definitely send a signal to action when it is evaluated (with or without repeat, it will work well with time constraint)</div><div><br></div><div>Any suggestion?</div></div></div>