<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Nihongi,<br>
    Thanks for your <span id="tran_1_2"
      data-aligning="#src_1_2,#tran_1_2"
      jquery171030942255483452097="21">attention. </span> I have tried
    to commit patches for this issue.<br>
    <span style="color: rgb(51, 51, 51); font-family: sans-serif;
      font-size: 12px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: 18px;
      orphans: auto; text-align: left; text-indent: 0px; text-transform:
      none; white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;">Gerrit topic:<span
        class="Apple-converted-space"> </span></span><a rel="nofollow"
href="https://review.openstack.org/#q,topic:bp/direct-alarm-evaluator-db-access,n,z"
      id="yui_3_10_3_1_1398233966258_1236" style="max-width: 60em;
      color: rgb(0, 51, 170); text-decoration: none; font-family:
      sans-serif; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      18px; orphans: auto; text-align: left; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">https:/<wbr
        style="max-width: 60em;">/review.<wbr style="max-width: 60em;">openstack.<wbr
        style="max-width: 60em;">org/#q,<wbr style="max-width: 60em;">topic:bp/<wbr
        style="max-width: 60em;">direct-<wbr style="max-width: 60em;">alarm-evaluator<wbr
        style="max-width: 60em;">-db-access,<wbr style="max-width:
        60em;">n,z</a><br>
    hope it can be helpful for you, and any advice is appreciated:)<br>
    <br>
    <div class="moz-cite-prefix">于 2014/4/21 18:01, Nobuyoshi Nihongi
      写道:<br>
    </div>
    <blockquote cite="mid:ECF5D48B98C5Enihongi.nobuyoshi@lab.ntt.co.jp"
      type="cite">
      <pre wrap="">Hi Liu sheng,

We're also investigating alarm_evaluator performance.
We observed that alarm_evaluator spends half of the time for calling 
ceilometerclient while evaluating alarms.
Allowing alarm_evaluator directly access db will greatly improve the 
performance if you have many alarms.

Best regards,
Nihongi


</pre>
      <blockquote type="cite">
        <pre wrap="">From: liusheng <a class="moz-txt-link-rfc2396E" href="mailto:liusheng1175@126.com"><liusheng1175@126.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>
Date: Tue, 15 Apr 2014 15:26:58 +0800
Subject: [openstack-dev] [ceilometer]support direct alarm_evaluator db access

Hi there,
Currently,alarm_evaluator invoke ceilometerclient to get all assigned
alarms. and then, evaluate per alarm by get statistics, which will also
call ceilometerclient. this process is:
evaluator-->ceilometerclient-->ceilometer API-->db.
If we use default option of evaluation_interval (60s), and if we have
many alarms, alarm_evaluator will frequently invoke ceilometerclient and
will produce many http requests per minute.
That is inefficient,it affect the performance of ceilometer(data
collection, data query, e.g.). The better way is allowing
alarm_evaluator access db directely.

Should the related codes of alarm-evaluator need a refactor?

Can you provide your thoughts about this?

I have registered a related blueprint:
<a class="moz-txt-link-freetext" href="https://blueprints.launchpad.net/ceilometer/+spec/direct-alarm-evaluator-db">https://blueprints.launchpad.net/ceilometer/+spec/direct-alarm-evaluator-db</a>-
access

Best regards
Liu sheng


_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
      </blockquote>
      <pre wrap="">
--
Nobuyoshi Nihongi
NTT Software Innovation Center
Phone: +81 422 59 4880
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:nihongi.nobuyoshi@lab.ntt.co.jp">nihongi.nobuyoshi@lab.ntt.co.jp</a>

_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>