<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 4:08 PM, yunhong jiang <span dir="ltr"><<a href="mailto:yunhong.jiang@linux.intel.com" target="_blank">yunhong.jiang@linux.intel.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, 2013-11-18 at 14:09 -0800, Joe Gordon wrote:<br>
><br>
> Phil Day discussed this at the summit and I have finally gotten around<br>
> to posting a POC of this.<br>
><br>
> <a href="https://review.openstack.org/#/c/57053/" target="_blank">https://review.openstack.org/#/c/57053/</a><br>
<br>
</div>Hi, Joe, why you think the DB is not exact state in your followed commit<br>
message? I think the DB is updated to date by resource tracker, am I<br>
right (the resource tracker get the underlying resource information<br>
periodically but I think that information is mostly static). And I think<br>
the scheduler retry mainly comes from the race condition of multiple<br>
scheduler instance.<br></blockquote><div><br></div><div><br></div><div>You answered the question yourself, the compute nodes (indirectly) update the DB periodically, so the further you are from the last periodic update the less up to date the DB is.</div>

<div><br></div><div>Its there for both reasons.  But yes it was originally put there because of the multi scheduler race condition.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
"We already have the concept that the DB isn't the exact state of the<br>
world, right now it's updated every 10 seconds. And we use the scheduler<br>
retry mechanism to handle cases where the scheduler was wrong. "<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">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>
</div></div></blockquote></div><br></div></div>