<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Courier New;color: #000000;font-size: 10pt;">
<div>Are you using Diablo or Trunk?</div>
<div><br>
</div>
If you're using trunk the default scheduler is MultiScheduler, which uses Chance scheduler. I think Diablo uses Chance by default?
<div><br>
</div>
<div>--scheduler_driver<br>
<div><br>
</div>
<div>Unless you've explicitly selected the LeastCostScheduler (which only exists in Diablo now) I wouldn't worry about those settings.</div>
<div><br>
</div>
<div>Did you explicitly define a scheduler to use?</div>
<div><br>
</div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF26150" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> openstack-bounces+sandy.walsh=rackspace.com@lists.launchpad.net [openstack-bounces+sandy.walsh=rackspace.com@lists.launchpad.net] on behalf of Jorge Luiz
 Correa [correajl@gmail.com]<br>
<b>Sent:</b> Thursday, November 10, 2011 6:27 AM<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> Re: [Openstack] Four compute-node, everytime the 1st and 2nd are choosen<br>
</font><br>
</div>
<div></div>
<div>
<div>Is there a flag in nova.conf that permits we configure that? In documentation we can see that exists some algorithms used by scheduler. But, I don't know how to choose that one best fit our requirements. </div>
<div><br>
</div>
<div>Thanks!</div>
<div>:)<br>
<br>
<div class="gmail_quote">On Wed, Nov 9, 2011 at 1:36 PM, Ed Leafe <span dir="ltr">
<<a href="mailto:ed.leafe@rackspace.com" target="_blank">ed.leafe@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
On Nov 9, 2011, at 7:51 AM, Razique Mahroua wrote:<br>
<br>
> I use the default scheduler, in fact, I've never tunned it really.<br>
> The hypervisors all run KVM<br>
<br>
       This is where the flag is defined in <a href="http://nova.scheduler.least_cost.py" target="_blank">
nova.scheduler.least_cost.py</a>:<br>
<br>
 32 FLAGS = flags.FLAGS<br>
 33 flags.DEFINE_list('least_cost_functions',<br>
 34         ['nova.scheduler.least_cost.compute_fill_first_cost_fn'],<br>
 35         'Which cost functions the LeastCostScheduler should use.')<br>
<br>
       Since the default weighting function is 'compute_fill_first_cost_fn', which, as its name suggests, chooses hosts so as to fill up one host as much as possible before selecting another, the pattern you're seeing is expected. If you change that flag to
 'nova.scheduler.noop_cost_fn', you should see the hosts selected randomly. The idea is that you can create your own weighting functions that will select potential hosts in a way that best fits your needs.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
-- Ed Leafe<br>
</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
- MSc. Correa, J.L.<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">embed[type*="application/x-shockwave-flash"],embed[src*=".swf"],object[type*="application/x-shockwave-flash"],object[codetype*="application/x-shockwave-flash"],object[src*=".swf"],object[codebase*="swflash.cab"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"],object[classid*="d27cdb6e-ae6d-11cf-96b8-444553540000"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"]{   display: none !important;}</style>
</body>
</html>