[pve-devel] batch migrate : add a optionnal flag to check available memory on target node ?
Alexandre DERUMIER
aderumier at odiso.com
Mon Jan 15 08:30:33 CET 2018
>>But I thought you want to implement those checks directly in the GUI?
Well, yes, but I would like to launch the migrateall, after before each migrate task, do the check if target host have enough memory.
I don't think you can estimate easily the target host memory usage before launching migration of all vms.
Later, I would like to implement something like "migrate all vms from 1 host to all hosts, with some kind of memory balancing"
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Samedi 13 Janvier 2018 13:21:36
Objet: Re: [pve-devel] batch migrate : add a optionnal flag to check available memory on target node ?
But I thought you want to implement those checks directly in the GUI?
> > But does I really need to do a run_command('pvesh ...'), parse the json, ...
> >
> > Isn't it possible to use a perl function to do it ?
>
> This was just an example using pvesh to access the API.
>
> https://pve.proxmox.com/wiki/Proxmox_VE_API
>
> For perl, you can use:
>
> https://git.proxmox.com/?p=pve-apiclient.git;a=summary
>
> On pve nodes, you can also use code from PVE::API2Tools and other libs.
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list