Re: [ovirt-users] Simple script to split VMs on different host - No affinity group

2014-11-02 Thread Doron Fediuck


- Original Message -
> From: "Amedeo Salvati" 
> To: "Itamar Heim" , users@ovirt.org
> Cc: "df >> Doron Fediuck" 
> Sent: Sunday, November 2, 2014 3:33:32 PM
> Subject: Re: [ovirt-users] Simple script to split VMs on different host - No 
> affinity group
> 
> yea, if I have the time I will integrate on a new scheduler
> 
> best regards
> a
> 
> Il 31/10/2014 12:51, Itamar Heim ha scritto:
> > On 10/30/2014 09:23 PM, Amedeo Salvati wrote:
> >> hello guys,
> >>
> >> if you are interested, I wrote a simple python script to balance VMs on
> >> different host/hypervisor, logic is simple and will search for same
> >> couple of vm name and number suffix, odd and even, and it will try to
> >> migrate even VM, if it resides on same host where resides the odd VM.
> >>
> >> For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host,
> >> then, the script will migrate only VMPROJ1PROD02.
> >>
> >> url of script and rpms are on github:
> >>
> >> http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost
> >>
> >> and feel free to suggest new patch, enhancement, create a fork...
> >>
> >> p.s. I haven't use affinity groups, because maintenance of them will
> >> become a struggle, and I want *only* to run same project/application VMs
> >> with same name on different hypervisor.
> >>
> >> Best regards
> >> Amedeo Salvati
> >>
> >>
> >> ___
> >> Users mailing list
> >> Users@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >>
> >
> > just a thought - you can implement this in a more integrated mannger
> > as part of the pluggable scheduler?
> >
> 
> 

Very nice!

You can see examples to integration with the scheduler here:
https://github.com/oVirt/ovirt-scheduler-proxy/tree/master/doc/plugin_samples

And some explanations here:
http://www.ovirt.org/External_Scheduler_Samples
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Simple script to split VMs on different host - No affinity group

2014-11-02 Thread Amedeo Salvati

yea, if I have the time I will integrate on a new scheduler

best regards
a

Il 31/10/2014 12:51, Itamar Heim ha scritto:

On 10/30/2014 09:23 PM, Amedeo Salvati wrote:

hello guys,

if you are interested, I wrote a simple python script to balance VMs on
different host/hypervisor, logic is simple and will search for same
couple of vm name and number suffix, odd and even, and it will try to
migrate even VM, if it resides on same host where resides the odd VM.

For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host,
then, the script will migrate only VMPROJ1PROD02.

url of script and rpms are on github:

http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost

and feel free to suggest new patch, enhancement, create a fork...

p.s. I haven't use affinity groups, because maintenance of them will
become a struggle, and I want *only* to run same project/application VMs
with same name on different hypervisor.

Best regards
Amedeo Salvati


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



just a thought - you can implement this in a more integrated mannger 
as part of the pluggable scheduler?




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Simple script to split VMs on different host - No affinity group

2014-10-31 Thread Itamar Heim

On 10/30/2014 09:23 PM, Amedeo Salvati wrote:

hello guys,

if you are interested, I wrote a simple python script to balance VMs on
different host/hypervisor, logic is simple and will search for same
couple of vm name and number suffix, odd and even, and it will try to
migrate even VM, if it resides on same host where resides the odd VM.

For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host,
then, the script will migrate only VMPROJ1PROD02.

url of script and rpms are on github:

http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost

and feel free to suggest new patch, enhancement, create a fork...

p.s. I haven't use affinity groups, because maintenance of them will
become a struggle, and I want *only* to run same project/application VMs
with same name on different hypervisor.

Best regards
Amedeo Salvati


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



just a thought - you can implement this in a more integrated mannger as 
part of the pluggable scheduler?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Simple script to split VMs on different host - No affinity group

2014-10-30 Thread Amedeo Salvati

hello guys,

if you are interested, I wrote a simple python script to balance VMs on
different host/hypervisor, logic is simple and will search for same
couple of vm name and number suffix, odd and even, and it will try to
migrate even VM, if it resides on same host where resides the odd VM.

For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host,
then, the script will migrate only VMPROJ1PROD02.

url of script and rpms are on github:

http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost

and feel free to suggest new patch, enhancement, create a fork...

p.s. I haven't use affinity groups, because maintenance of them will
become a struggle, and I want *only* to run same project/application VMs
with same name on different hypervisor.

Best regards
Amedeo Salvati
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users