------=_Part_8277210_955683547.1401114136181
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hi Nathana=C3=ABl,
happy to assist :) hope it will work in first run:
1) install the proxy and ovirtsdk.
2) put attached file in the right place (according to docs: ".../plugins"),=
make sure to edit the file with your ovirt's ip, user@domain and PW.
3) restart proxy service.
3) use config tool to configure ovirt-engine:
* "ExternalSchedulerServiceURL"=3D"http://<ip>:18781/"
* "ExternalSchedulerEnabled"=3Dtrue
4) restart ovirt-engine service.
5) under configure->cluster_policy see that weight function memory_even_dis=
tribution was added (should be in manage policy units or /sth- you will see=
it in the main dialog as well).
6) clone/copy currernt cluster's used cluster policy (probably none - prefe=
r it to have no balancing modules to avoid conflicts), name it 'your_name' =
and attach memory_even_distribution weight (you can leave it as the only we=
ight module in weight section to avoid configuring factors).
7) replace cluster's cluster policy with newly created one.
try it out and let me know how goes :-)
Thanks,=20
Gilad.
----- Original Message -----
From: "Nathana=C3=ABl Blanchet" <blanchet(a)abes.fr>
To: "Gilad Chaplik" <gchaplik(a)redhat.com>
Cc: "Karli Sj=C3=B6berg" <Karli.Sjoberg(a)slu.se>, "users"
<users(a)ovirt.org=
Sent: Monday, May 26, 2014 12:12:41 PM
Subject: Re: [ovirt-users] SLA : RAM scheduling
=20
Hi Gilad,
=20
Yes, I'm interested in that feature, I'vebegun to read this following
your advices
http://www.ovirt.org/Features/oVirt_External_Scheduling_Proxy, I don't
think I will have time enough to get it work quickly, I'm not
experienced enough with this kind of feature, unless you help me.
=20
Le 24/05/2014 10:49, Gilad Chaplik a =C3=A9crit :
> Hi Nathana=C3=ABl,
>
> You have 2 ways to get what you're after (quick/slow):
> 1) install 'oVirt's external scheduling proxy', and write an extremely
> simple weight function that orders hosts by used memory, then add that =
to
> your cluster policy.
> 2) open an RFE for oVirt 3.4 to have that in
> (
https://bugzilla.redhat.com/enter_bug.cgi?product=3DoVirt).
>
> let me know if you consider (1), and I'll assist.
>
> anyway I suggest you'll open an RFE for 3.5.
>
> Thanks,
> Gilad.
>
> ----- Original Message -----
>> From: "Nathana=C3=ABl Blanchet" <blanchet(a)abes.fr>
>> To: "Karli Sj=C3=B6berg" <Karli.Sjoberg(a)slu.se>
>> Cc: "users" <users(a)ovirt.org>
>> Sent: Friday, May 23, 2014 7:38:40 PM
>> Subject: Re: [ovirt-users] SLA : RAM scheduling
>>
>> even distribution is for cpu only
>>
>> Le 23/05/2014 17:48, Karli Sj=C3=B6berg a =C3=A9crit :
>>
>>
>>
>>
>>
>> Den 23 maj 2014 17:13 skrev =3D?ISO-8859-1?Q?Nathana=3DEBl_Blanchet?=
=3D
>> <blanchet(a)abes.fr> :
>>>
>>> Le 23/05/2014 17:11, Nathana=C3=ABl Blanchet a =C3=A9crit :
>>>> Hello,
>>>> On ovirt 3.4, is it possible to schedule vms distribution depending =
on
>>>> host RAM availibility?
>>>> Concretly, I had to manually move vms all the vms to the second host
>>>> of the cluster, this lead to reach 90% occupation of memory on the
>>>> destination host. When my first host has rebooted, none vms of the
>>>> second host automatically migrated to the first one which had full
>>>> RAM. How to make this happen?
>>>>
>>> ... so as to both hosts be RAM evenly distributed... hope to be enoug=
h
>>> clear...
>> Sounds like you just want to apply the cluster policy for even
>> distribution.
>> Have you assigned any policy for that cluster?
>>
>> /K
>>
>>> --
>>> Nathana=C3=ABl Blanchet
>>>
>>> Supervision r=C3=A9seau
>>> P=C3=B4le exploitation et maintenance
>>> D=C3=A9partement des syst=C3=A8mes d'information
>>> 227 avenue Professeur-Jean-Louis-Viala
>>> 34193 MONTPELLIER CEDEX 5
>>> T=C3=A9l. 33 (0)4 67 54 84 55
>>> Fax 33 (0)4 67 54 84 14
>>> blanchet(a)abes.fr
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users(a)ovirt.org
>>>
http://lists.ovirt.org/mailman/listinfo/users
>> --
>> Nathana=C3=ABl Blanchet
>>
>> Supervision r=C3=A9seau
>> P=C3=B4le exploitation et maintenance
>> D=C3=A9partement des syst=C3=A8mes d'information
>> 227 avenue Professeur-Jean-Louis-Viala
>> 34193 MONTPELLIER CEDEX 5
>> T=C3=A9l. 33 (0)4 67 54 84 55
>> Fax 33 (0)4 67 54 84 14 blanchet(a)abes.fr
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>>
http://lists.ovirt.org/mailman/listinfo/users
>>
=20
--
Nathana=C3=ABl Blanchet
=20
Supervision r=C3=A9seau
P=C3=B4le exploitation et maintenance
D=C3=A9partement des syst=C3=A8mes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
T=C3=A9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
=20
------=_Part_8277210_955683547.1401114136181
Content-Type: text/x-python; name=memory_even_distribution.py
Content-Disposition: attachment; filename=memory_even_distribution.py
Content-Transfer-Encoding: base64
ZnJvbSBvdmlydHNkay54bWwgaW1wb3J0IHBhcmFtcwpmcm9tIG92aXJ0c2RrLmFwaSBpbXBvcnQg
QVBJCmltcG9ydCBzeXMKCgpjbGFzcyBtZW1vcnlfZXZlbl9kaXN0cmlidXRpb24oKToKICAgICcn
J3JhbmsgaG9zdHMgYnkgZXZlbiByYW0gZGlzdHJpYnV0aW9uJycnCgogICAgcHJvcGVydGllc192
YWxpZGF0aW9uID0gJycKCiAgICBkZWYgX2dldF9jb25uZWN0aW9uKHNlbGYpOgogICAgICAgICNv
cGVuIGEgY29ubmVjdGlvbiB0byB0aGUgcmVzdCBhcGkKICAgICAgICBjb25uZWN0aW9uID0gTm9u
ZQogICAgICAgIHRyeToKICAgICAgICAgICAgY29ubmVjdGlvbiA9IEFQSSh1cmw9J2h0dHA6Ly9o
b3N0OnBvcnQnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVzZXJuYW1lPSd1c2VyQGRv
bWFpbicsIHBhc3N3b3JkPScnKQogICAgICAgIGV4Y2VwdCBCYXNlRXhjZXB0aW9uIGFzIGV4Ogog
ICAgICAgICAgICAjbGV0dGluZyB0aG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2hvc3QuaWQsCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFicygwIC0gZW5naW5lX2hvc3QubWF4X3NjaGVk
dWxpbmdfbWVtb3J5KSkpCiAgICAgICAgcHJpbnQgaG9zdF9zY29yZXMK
------=_Part_8277210_955683547.1401114136181--