<div dir="ltr">Hi, <div><br></div><div>In case of live-migration reporting I'd rather go with real-time stats, queried from compute, instead of reporting this data to db first. While amount of of rpc requests/db updates is relatively small, total number of such requests depends on amount of active migrations. While realtime data from compute allows to decrease it. Not every migration will trigger operator to gather statistics, and each of triggered will require only 2 rpc per request instead of 2 rpc and db write per 3/5/etc. seconds.</div><div><br></div><div>Timofey.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 7, 2016 at 10:31 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/04/2016 11:02 PM, Bhandaru, Malini K wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another thought, for such ephemeral/changing data, such as progress,<br>
why not save the information in the cache (and flush to database at a<br>
lower rate), and retrieve for display to active listeners/UI from the<br>
cache. Once complete or aborted, of course flush the cache.<br>
<br>
Also should we provide a "verbose flag", that is only capture<br>
progress information when requested? That is when a human user might<br>
be issuing the command from the cli or GUI tool.<br>
</blockquote>
<br></span>
I agree with you, Malini, on the above suggestion that there is some doubt as to the value of saving this temporal data to the database.<br>
<br>
Why not just have an on-demand model that simply routes the request for progress information directly to the compute node and sends the progress amount back directly to the nova-api service instead of going to the database at all?<br>
<br>
Another alternative would be to use a push model instead of a poll model, but that would require a pretty significant change to the code...<br>
<br>
Best,<br>
-jay<div class="HOEnZb"><div class="h5"><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>