<div dir="ltr">Ok, Super! Big thanks for your help!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-05 15:28 GMT+01:00 Artyom Lukianov <span dir="ltr"><<a href="mailto:alukiano@redhat.com" target="_blank">alukiano@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you want that each vm will run on different host, you can:<br>
1) just not pinned it to specific host(placement and migration options under vm properties)?<br>
2) create two clusters, each cluster will have hosts from different physical datacenters, and for each cluster administrate different set of vms.<br>
3) And in the end we have possibility to use external scheduler, so you can write your own python script, and use it as filter, weight or balance module for ovirt scheduler:<br>
<a href="http://www.ovirt.org/Features/oVirt_External_Scheduling_Proxy" target="_blank">http://www.ovirt.org/Features/oVirt_External_Scheduling_Proxy</a><br>
<a href="http://www.ovirt.org/External_Scheduler_Samples" target="_blank">http://www.ovirt.org/External_Scheduler_Samples</a><br>
<br>
You need to install package ovirt-scheduler-proxy and also enable it via engine-config -s ExternalSchedulerEnabled=True.<br>
Also additional info you can find under cd /usr/share/doc/ovirt-scheduler-proxy*<br>
<br>
I hope it will help you.<br>
Thanks<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: "Koen Vanoppen" <<a href="mailto:vanoppen.koen@gmail.com">vanoppen.koen@gmail.com</a>><br>
To: "Doron Fediuck" <<a href="mailto:dfediuck@redhat.com">dfediuck@redhat.com</a>>, <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
Sent: Monday, January 5, 2015 11:26:26 AM<br>
Subject: Re: [ovirt-users] Affinity<br>
<br>
Thanks for your reply. But I maybe explained it badly... All the 4 hypervisors are in the same Datacenter on oVirt. But they are physically in a different datacenter.<br>
That is why I want to force them to run on a different hypervisor. IF 1 physical datacenter would go down (electricity power failure or whatever) At least one VM will continue to run.<br>
<br>
2015-01-05 10:21 GMT+01:00 Doron Fediuck < <a href="mailto:dfediuck@redhat.com">dfediuck@redhat.com</a> > :<br>
<br>
<br>
<br>
<br>
On 05/01/15 10:54, Koen Vanoppen wrote:<br>
<br>
<br>
<br>
Hi All,<br>
<br>
First of all, let me say a Happy New Year with all the best wishes!!<br>
<br>
Now, let's get down to business :-).<br>
<br>
I would lik eto implement the Affinity option in our datacenter.<br>
I already activated it, put the 2 vms in it and set in on negative so they won't run together on the same hypervisor. Now, the question...<br>
Is there a way I can force the VM's so they will run on a hypervisor that is not in the same datacenter? We have this;<br>
<br>
Hyp1 -> Datacenter1<br>
Hyp2 -> Datacenter2<br>
Hyp3 -> Datacenter1<br>
Hyp4 -> Datacenter2<br>
<br>
For the moment they run on a different Hypervisor, but they are in the same Datacenter. I can manually now move them to the other one, but I would like this that oVirt manages this...<br>
Is this possible...?<br>
<br>
Kind regards,<br>
<br>
Koen<br>
<br>
<br>
Hi Koen.<br>
<br>
VMs cannot move between data centers while still running.<br>
Just to provide some basic concepts in terms of hierarchy, we have:<br>
<br>
Data-Center1<br>
|<br>
|\ Cluster A<br>
| |<br>
| |\ Host (a)<br>
| |\ Host (b)<br>
|<br>
|\ Cluster B<br>
| |<br>
| |\ Host (c)<br>
| |\ Host (d)<br>
| |\ Host (e)<br>
<br>
Data-Center2<br>
|<br>
|\ Cluster A<br>
| |<br>
| |\ Host (f)<br>
|<br>
|\ Cluster B<br>
| |<br>
| |\ Host (g)<br>
| |\ Host (h)<br>
| |\ Host (i)<br>
<br>
As you can see, a host may be a part of a single cluster and a VM<br>
will run on one of the hosts. Live migration can be done between<br>
hosts of the same cluster. The only way to move VM between clusters<br>
and DCs are when the VM is down, in a manual way.<br>
<br>
So Affinity works in the cluster level, and the rules are valid for a<br>
specific cluster who currently owns the VM.<br>
In your case if Hyp1 and Hyp3 belong to the same cluster, the affinity<br>
rules will apply every time you start or migrate a VM. However, there's<br>
no rule which is valid for Datacenter1 and Datacenter2.<br>
<br>
HTH,<br>
Doron<br>
<br>
<br>
</div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div>