<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>We're using the (mostly) default scheduler settings. policy=1, MAX_HOST=1, etc. My question came about because we had an empty host and instantiated a number of VMs, and they all landed on the empty host. I have no doubt we have something funky in our
setup. I'll have to experiment with the scheduler more.</div>
<div><br>
</div>
<div>Thanks for the quick reply, Carlos.
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>On Aug 1, 2014, at 7:47 AM, Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hi,
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jul 31, 2014 at 7:47 PM, Mark Devlin <span dir="ltr">
<<a href="mailto:mdevlin@intelius.com" target="_blank">mdevlin@intelius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">
Greetings,<br>
<br>
Is there a way, using 4.4 or newer, for the scheduler to place VMs based on their names?
</blockquote>
<div><br>
</div>
<div>No, but you can set a specific SCHED_REQUIREMENTS and _RANK in the Template [1]</div>
<div> </div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">
Basically I want to spread a type of VM across as many hosts as possible, as long as the hosts have available resources for it.<br>
<br>
For example, if I have four hosts that have VMs and one that's empty, I don't want the five (web1-web5) VMs I'm about about to instantiate to all end up on that empty host. I want one on each host. However, if I start three more (web6-web8), it should place
based on available resources.<br>
<br>
Hopefully that makes sense. Thank you<br>
<br>
-Mark<br>
</blockquote>
<div><br>
</div>
<div>That's how the scheduler works by default [2]. The policy is Striping, and MAX_HOST is set to 1. The striping policy will try to send the VMs to the host with less running VMs, but because of max_host = 1, only one VM will be sent to the empty host in
that scheduling cycle.</div>
<div><br>
</div>
<div>If you change the default policy, use SCHED_RANK = "- RUNNING_VMS" in your Template.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div><br>
</div>
<div>[1] <a href="http://docs.opennebula.org/4.6/user/references/template.html#placement-section">
http://docs.opennebula.org/4.6/user/references/template.html#placement-section</a><br>
</div>
<div>[2] <a href="http://docs.opennebula.org/4.6/administration/references/schg.html">
http://docs.opennebula.org/4.6/administration/references/schg.html</a></div>
<div>
<div dir="ltr">--<br>
<div>Carlos Martín, MSc<br>
Project Engineer</div>
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>
</div>
</div>
</div>
<div> </div>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>