<br><font size=2 face="sans-serif"><br>
</font><font size=3>Hi all,</font>
<br>
<br><font size=3>Maybe call the get_all method in the AodhDriver constructor
and cache all the alarms is a simple way.<br>
</font>
<br><font size=3>BR,</font>
<br><font size=3>dwj</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=36%><font size=1 face="sans-serif"><b>Yujun Zhang <zhangyujun+zte@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">2016-11-28 11:23</font>
<td width=63%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">收件人</font></div>
<td><font size=1 face="sans-serif">"OpenStack Development Mailing
List (not for usage questions)" <openstack-dev@lists.openstack.org>,
"dong.wenjuan@zte.com.cn" <dong.wenjuan@zte.com.cn></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">抄送</font></div>
<td><font size=1 face="sans-serif">"Hefetz, Idan (Nokia - IL)"
<idan.hefetz@nokia.com>, "zhang.yujunz@zte.com.cn" <zhang.yujunz@zte.com.cn></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">主题</font></div>
<td><font size=1 face="sans-serif">Re: [openstack-dev] [vitrage] about
aodh alarm notification</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hi, Alexey</font>
<br>
<br><font size=3>My comments inline.<br>
</font>
<br><font size=3>On Mon, Nov 28, 2016 at 1:52 AM Weyl, Alexey (Nokia -
IL) <</font><a href=mailto:alexey.weyl@nokia.com><font size=3 color=blue><u>alexey.weyl@nokia.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 color=#1f497d face="Calibri">Hi Dong,</font>
<p><font size=2 color=#1f497d face="Calibri"> </font>
<p><font size=2 color=#1f497d face="Calibri">I can think of 2 solutions
for this problem:</font>
<p><font size=2 color=#1f497d face="Calibri">1.
We can talk with the AODH developers and check if they can add additional
data for the aodh notifications.</font>
<p><font size=3>I think it might not be easily accepted since sending only
the changes on update notification looks more reasonable to me. </font>
<br><font size=2 color=#1f497d face="Calibri">2.
We can add a cache in the aodh driver, and call the get_all method in the
AodhDriver constructor or when the first notification happens and fill
the cache with the data. Then for each notification that arrives you
will update that cache in the aodh notification service, and send then
event with all the data you need.</font>
<p><font size=3>I doubt this will degrade the performance for the first
notification since there will be additional conversation to retrieve the
full data. </font>
<br>
<br><font size=3>My proposal is to share a cache between snapshot service
and listener service and I think it is a common requirements for all datasource
using PUSH method.</font>
<br>