<div dir="ltr"><div><div><div>I know, but in my configuration I need that the unused hosts are shutted down, so they are not usable from the scheduler.<br></div>What i need is:<br></div>before
 to instantiate or reschedule a VM, i check the scheduler, if the best 
host selected from the scheduler is suitable to run the VM, then ok.<br>
</div>If the host is not suitable (e.g. the used_cpu is more than 80% 
and i don't want it), then wake up one of the hosts that are in standby 
and repeat the procedure.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-14 15:07 GMT+02:00 Carlo Daffara <span dir="ltr"><<a href="mailto:carlo.daffara@cloudweavers.eu" target="_blank">carlo.daffara@cloudweavers.eu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is actually already a scheduler that does it, it uses the "packing policy":<br>
Packing Policy<br>
<br>
    Target: Minimize the number of cluster nodes in use<br>
    Heuristic: Pack the VMs in the cluster nodes to reduce VM fragmentation<br>
    Implementation: Use those nodes with more VMs running first<br>
<br>
RANK = RUNNING_VMS<br>
<br>
( <a href="http://archives.opennebula.org/documentation:rel4.4:schg#packing_policy" target="_blank">http://archives.opennebula.org/documentation:rel4.4:schg#packing_policy</a> )<br>
cheers,<br>
Carlo Daffara<br>
<br>
----- Messaggio originale -----<br>
Da: "Marco Fanti" <<a href="mailto:marco.fanti@studenti.polito.it">marco.fanti@studenti.polito.it</a>><br>
A: "Users OpenNebula" <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
Inviato: Lunedì, 14 aprile 2014 14:54:11<br>
Oggetto: [one-users] How to interrogate the scheduler<br>
<div><div class="h5"><br>
I'm writing a program that has to minimize the number of running hosts.<br>
<br>
I need to know, before that I command a VM reschedule or a template instantiation, if it is possible to ask to the scheduler which will be the selected host.<br>
<br>
Kind regards,<br>
Marco Fanti<br>
<br>
</div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div>