[pve-devel] [PATCH] Make max_workers configurable in GUI

Dietmar Maurer dietmar at proxmox.com
Thu Mar 17 17:23:45 CET 2016


> Forgot to add that the only problem with this addition is that when the
> value of max_workers is configured, you cannot return to the default
> anymore (schema check only allows integers).
> 
> So when you don't have max_workers in datacenter.cfg the default is to use
> the number of CPUs as max_workers.
> If max_workers is set in datacenter.cfg (value 1-64) you cannot 'clear' the
> value and use the default again, i'm not really sure how to achieve that.

That is why we have a --delete parameter in the API. 
For example you can do:

# pvesh set cluster/options --delete max_workers

For text input we have a special widget which can do that, see

www/manager/form/TextField.js: option deleteEmpty

An alternative would be to use a combobox ... not sure what is best here




More information about the pve-devel mailing list