clustershell
clustershell copied to clipboard
Provide `dbuck -s` like statistical feature
The utility dbuck is provided by python-hostlist software. Here is an example this command usage:
# pdsh -w n[100-300] 'cat /proc/loadavg' | dbuck -n 10 -sS
Statistical summary
---------------------------------------------------------------------
Number of values : 201
Number of rejected lines : 0
Min value : 0.910000
Max value : 24.610000
Mean : 13.638010
Median : 16.000000
Standard deviation : 4.899393
Sum : 2741.240000
0.91- 3.28: 18 n[112,122,135,137,139,156-157,165,167,172,179,221...
3.28- 5.65: 3 n[100,169,173]
5.65- 8.02: 13 n[110,117,136,192,214,216,223,242-243,257-259,266]
8.02-10.39: 14 n[109,127-129,131,142,154,162,190,213,235,260,265...
10.39-12.76: 5 n[164,199,233,245,290]
12.76-15.13: 8 n[106,115,141,160,210,224,228,293]
15.13-17.50: 138 n[101-105,107-108,111,113-114,116,118-121,123-126...
17.50-19.87: 0
19.87-22.24: 1 n146
22.24-24.61: 1 n207
Unfortunately, python-hostlist is not really maintained anymore. It would be nice if clustershell could provide this nice feature off-the-shelf, wouldn't it?
Hi @rezib! Good idea. Now that we do support nD node sets, we could perhaps implement a python-hostlist based on ClusterShell as a replacement.