Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPULimit of ConfigLxc should be of type float, not int. #360

Open
Sonlis opened this issue Aug 29, 2024 · 1 comment
Open

CPULimit of ConfigLxc should be of type float, not int. #360

Sonlis opened this issue Aug 29, 2024 · 1 comment
Labels

Comments

@Sonlis
Copy link

Sonlis commented Aug 29, 2024

As the (documentation)[https://proxmox.bastincloud.local:8006/pve-docs/chapter-pct.html#pct_cpu] states, cpulimit can be a floating number:

cpulimit: You can use this option to further limit assigned CPU time. Please note that this is a floating point number, so it is perfectly valid to assign two cores to a container, but restrict overall CPU consumption to half a core.

Because the field CPULimit here:

CPULimit int `json:"cpulimit"`
is of type int, the user cannot input a floating point number.

@Tinyblargon
Copy link
Collaborator

Currently a rework of LXC is ongoing #336, If this is an issue you need fixed please create a pull request, as my efforts are needing for the rewrite (this rewrite will take a long time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants