[ClusterLabs] Antw: Re: Q: crm_mon and utilization attributes

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Tue Oct 22 09:43:27 EDT 2019


>>> Yan Gao <YGao at suse.com> schrieb am 22.10.2019 um 15:15 in Nachricht
<346e6873-1205-ace0-025b-d04957870fde at suse.com>:
> On 10/22/19 2:40 PM, Ulrich Windl wrote:
>> Hi!
>> 
>> I just noticed that crm_mon knows no option to display utilization 
> attributes, "crm node show" does not display them either, but "crm config 
> <node> show" does:
>> 
>> # crm config show h02
>> node 202: h02 \
>>          utilization utl_cpu=200 utl_ram=1200 \
>>          utilization cpu=23 host_memory=128401 hv_memory=0
> 
> Utilization stuff indeed belong to the configuration.
> 
>> 
>> 
>> In contrast, crm_mon says:
>> Node Attributes:
>> * Node h02:
>>      + val_network                       : 1000
>> * Node h06:
>>      + val_network                       : 1000
> 
> crm_mon shows us the "transient" node attributes from cib status.
> 
>> 
>> And
>> # crm node show
>> h02(202): member
>> h06(206): member
> Hard to say if it's necessary to duplicate the info as from crm config 
> show. I assume the original idea was to show the basic information such 
> as the nodes' "type" and the configured "attributes" like "standby". But 
> I believe "utilization" could be added as well if it's considered needed 
> here.

Hi!

Leaving aside all the history and data structures, I simply think that node-related, dynamically changing attributes should be displayed with the node's status.
UNFORTUNATELY there are two different "utilization" attributes: One is capacity-like (and static, i.e. "configuration"), and the other is usage-like (and dynamic). The latter can be displayed with crm_simulate -LU:

...
Utilization information:
Original: h02 capacity: cpu=23 host_memory=128401 hv_memory=0 utl_cpu=200 utl_ram=1200
Original: h06 capacity: cpu=23 host_memory=128401 hv_memory=0 utl_cpu=200 utl_ram=1200
...
Remaining: h02 capacity: cpu=23 host_memory=128401 hv_memory=0 utl_cpu=198 utl_ram=1198
Remaining: h06 capacity: cpu=23 host_memory=128401 hv_memory=0 utl_cpu=198 utl_ram=1198
...

# crm config show h0\*
node 202: h02 \
        utilization utl_cpu=200 utl_ram=1200 \
        utilization cpu=23 host_memory=128401 hv_memory=0
node 206: h06 \
        utilization utl_cpu=200 utl_ram=1200 \
        utilization cpu=23 host_memory=128401 hv_memory=0

In my vision crm_mon would display both values, maybe even "percent used" for each.

Regards,
Ulrich

> 
> Regards,
>    Yan
> 
>> 
>> Is there any specific reason for such omissions?
>> 
>> Regards,
>> Ulrich Windl
>> 
>> 
>> 
>> _______________________________________________
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users 
>> 
>> ClusterLabs home: https://www.clusterlabs.org/ 
>> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users 
> 
> ClusterLabs home: https://www.clusterlabs.org/ 






More information about the Users mailing list