-
|
Hi, I’m trying to understand the exact meaning of the What I seeIn the Proxmox UI (and API), the node shows:
However, using Terraform with the cpu_sockets = 1
cpu_count = 8
My question Could you clarify what cpu_count represents exactly? Why does Terraform report cpu_count = 8 while Proxmox UI shows “Max CPU = 16”? Is cpu_count intended to reflect a different concept than the Proxmox “Max CPU” value? I didn’t find this distinction documented, and the field name cpu_count makes it Thanks for the clarification. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hello, It's from API: ...
"cpuinfo": {
"cores": 8,
"cpus": 16,
"flags": "...........",
"hvm": "1",
"mhz": "1796.619",
"model": "INTEL/AMD",
"sockets": 1,
"user_hz": 100
}
...And the provider maps it as: ...
CPUInfo struct {
CPUCores *int `json:"cores,omitempty"`
CPUSockets *int `json:"sockets,omitempty"`
CPUModel *string `json:"model"`
} `json:"cpuinfo"`
...In the Proxmox API: So cpu_count reflects physical cores, while the Proxmox UI “Max CPU” reflects logical CPUs. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @666Goofy666, thanks for the clarification, that was very helpful. Just to clarify for future readers, in |
Beta Was this translation helpful? Give feedback.
-
|
Please also check the documentation. This behaviour in the provider has changed recently |
Beta Was this translation helpful? Give feedback.
Please also check the documentation. This behaviour in the provider has changed recently
https://registry.terraform.io/providers/bpg/proxmox/latest/docs/data-sources/virtual_environment_node#cpu_count-1