]> git.proxmox.com Git - pve-manager.git/commit
use max_workers from datacenter.cfg for stopall/migrateall
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Feb 2016 10:58:25 +0000 (11:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 11 Feb 2016 10:13:55 +0000 (11:13 +0100)
commit89ceb8026a9e3e01b58178f9f03a05179f24fd76
tree329539a10c72b706ae80896964cdc013514bac78
parentc2c8ca92b39b9c7b0be022c0c950c165db81ce44
use max_workers from datacenter.cfg for stopall/migrateall

If set limit the maximal worker count to the new datacenter.cfg
setting 'max_workers'.

For stopall we prefer this over the cpu count if it's set.

For migrateall we prefer the parameter but allow now to ommit
the parameter and then we use the new setting if set.
if both are not set we throw an error.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Nodes.pm