[ClusterLabs] A word of warning regarding VirtualDomain and utilization
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Fri Dec 11 05:59:49 EST 2020
Hi!
A word of warning (for SLES15 SP2):
I learned that the VirtualDomain RA sets utilization parameters "cpu" and "hv_memory" for the resource's permanent configuration. That is: You'll see those parameters, even though you did not configure them.
So far, so good, but when you defined a utilization-based placement strategy like placement-strategy=balanced, the VMs won't start as nobody did define those node capacities.
Questions at that point:
Should the resource manager warn if a utilization variable is queried when it's not defined (I mean when it has no value at all, different from being zero)?
Why can't crm shell "configure show property" or show any property by name? The only way to see them is just "show" which shows "everything". Maybe I don't know.
Continuing with the problem:
The only RA that sets those utilization values is NodeUtilization. So you'll have to configure that in order to use VirtualDomain with default settings.
Related question: Why can't crm_mon display (at least) node's utilization parameters ("remaining capacities")? The only command known to me to query those is "crm_simulate -LUs | grep capacity:".
Another problem is (maybe I had talked about that a long time ago already) that "cpu"s are just integers: If a VM has two vcpus, then it will consume two physical cpus of the node.
You cannot model any resources that need somthing like 1/2 or 1/10-th of a CPU (just to help the load balancing for non-VM resources).
Regards,
Ulrich
More information about the Users
mailing list