<div dir="ltr">Hi Yuanjing,<div><br></div><div>some pointers inline.<br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-03 4:33 GMT+02:00 Yuanjing (D) <span dir="ltr"><<a href="mailto:yj.yuan@huawei.com" target="_blank">yj.yuan@huawei.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div>Hi</div>
<div><br>
</div>
<div>I have a requirement of monitoring VMs, if a VM's meter <span style="font-size:10pt">like cpu_util become too high, then system generate an alarm for this VM with </span><span style="font-size:10pt">meter information.</span></div>
<div><br>
</div>
<div>
<div><span style="font-size:10pt">I have tested alarm function of ceilometer, b</span>elow are commands I used to create alarm object with meter and resource id or not:</div>
<div>ceilometer alarm-threshold-create --name alarm1 --meter-name cpu_util --period 60 --evaluation-periods 1 --statistic avg --comparison-operator gt --threshold 1 -q resource_id=757dadaa-0707-4fad-808d-81edc11438aa</div>
</div>
<div>ceilometer alarm-threshold-create --name alarm1 --meter-name cpu_util --period 60 --evaluation-periods 1 --statistic avg --comparison-operator gt --threshold 1</div>
<div><br>
</div>
<div>I have the following question:</div>
<div><span style="font-size:10pt">If </span><span style="font-size:10pt">I have to define alarm object for every VM and every meter? </span></div></div></div></blockquote><div>From my comprehension, yes it's the good and the unique way</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div><span style="font-size:10pt">Take 100 VM and 2 meter cpu_util, memory_util as an example, I will have to define 100*2 alarm objects for them. </span></div>
<div><span style="font-size:10pt">I think i</span><span style="font-size:10pt">f I just define alarm object with meter not but VM(resource_id), then alarm evaluator will count all VM's meter.</span></div></div></div>
</blockquote><div>your're right, Here your alarm will be trigered on the average of all samples in the period of all VMs .. which is not what you want I'm sure.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div><span style="font-size:10pt"><br>
</span></div>
<div>Another question produced by question above: I know that <span style="font-size:10pt">alarm evaluator will process alarm object one by one, so too many alarm object may result in performance problems too.</span></div>
</div></div></blockquote><div><div>On which component have you observed a performance issue ?</div><div><br></div><div>This should be better/mitigate if you deploy correctly multiple services involved in the alarm evaluation: at least the evaluator and the API.</div>
<div>About the backend, I read there is some performance issue with SQL [1] but seems not about alarming but rather notifications handling.</div><div>The prefered backends for performance should be MongoDB or Hbase (on multi nodes). </div>
</div><div>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div><span style="font-size:10pt">I am not a ceilometer programmer and I apologize if I am missing something very obvious.</span></div>
<div>Can you give me some help to make me clear about them and how to implement my requirement?<span style="font-family:arial;font-size:small"> </span></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
</div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div>[1] <a href="http://lists.openstack.org/pipermail/openstack-dev/2014-March/030288.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2014-March/030288.html</a></div></div></div>