<div dir="ltr">Russell,<div><br></div><div>To get information about "all" compute nodes we should wait one periodic task (60 seconds by default).</div><div>So starting will take a while.<br></div><div><br></div><div>
But I don't think that this is a big problem:</div><div>1) if we are already able to wait each time for heavy and long (> few seconds) db querie</div><div>2) if we have more then one scheduler, we are always able to turn and change one by one.</div>
<div>(I don't think that having for 5 minutes old and new schedulers will break anything).</div><div><br></div><div>Also as a first step that could be done to speed up scheduler:</div><div>We could just remove db.compute_node_get_all() and send RPC calls directly to schedulers. </div>
<div>I think that patch-set that change this thing will be pretty small (~100-150 lines of code) and doesn't requirers big changes in current scheduler implementation. </div><div><br></div><div><br></div><div>Best regards,</div>
<div>Boris Pavlovic</div><div><br></div><div>Mirantis Inc. </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 5:50 PM, Russell Bryant <span dir="ltr"><<a href="mailto:rbryant@redhat.com" target="_blank">rbryant@redhat.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 07/22/2013 08:16 AM, Boris Pavlovic wrote:<br>
>>> * How do you bring a new scheduler up in an existing deployment and make it get the full state of the system?<br>
><br>
> You should wait for a one periodic task time. And you will get full<br>
> information about all compute nodes.<br>
<br>
</div>This also affects upgrading a scheduler.  Also consider a continuous<br>
deployment setup.  Every time you update a scheduler, it's not usable<br>
for (periodic task interval) seconds/minutes?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Russell Bryant<br>
</font></span><div class="HOEnZb"><div class="h5"><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>