[
https://issues.apache.org/jira/browse/HDDS-15306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gargi Jaiswal updated HDDS-15306:
---------------------------------
Description:
Reported by [~ssulav] and [~elavarasan]
* Make *diskBalancer visible* on top-level datanode help command which was
hidden in this PR HDDS-13649
* Improve diskBalancer help msg to explain how to terminate *stdin input* when
using *-* to provide datanode addresses through standard input.
{code:java}
Usage: ozone admin datanode diskbalancer status [-hV] [--in-service-datanodes]
[--json] [--verbose] [<datanode address>...]
Get DiskBalancer status
[<datanode address>...]
Datanode addresses: one or more, separated by spaces. To read
from stdin, specify '-' and supply one item per line.Port
is optional and defaults to 19864 (CLIENT_RPC port).
Examples: 'DN-1', 'DN-1:19864', '192.168.1.10'.
-h, --help Show this help message and exit. {code}
* All the values in diskbalancer report should be rounded to 5 decimal places.
{code:java}
[dn-1 ~]# ozone admin datanode diskbalancer report --in-service-datanodes
--verbose
Report result:
Datanode: dn1 (10.82.246.167:19864)
Aggregate VolumeDataDensity: 0.20786860859385214
IdealUsage: 0.14747954 | Threshold: 10.0% | ThresholdRange: (0.04747954,
0.24747954)
Volume Details:
StorageID StoragePath
TotalCapacity UsedSpace Container Pre-AllocatedSpace
EffectiveUsedSpace Utilization VolumeDensity
DS-71f33f87-9212-488c-9ae6-4db48c9a48f1 /hadoop-ozone/datanode/data/hdds
349.27 GB 4.71 GB 26.82 GB
75.05 GB 0.21487346 0.06739392
DS-ac73c11c-993a-49f9-b97e-ea61145452e2 /hadoop-ozone/datanode/data2/hdds
195.78 GB 1.11 GB 4.27 GB
16.36 GB 0.08357777 0.06390177
DS-5b27f109-0029-424a-9092-5ae7692b98db hadoop-ozone/datanode/data3/hdds
195.78 GB 2.32 GB 18.06 GB 30.86
GB 0.15760217 0.01012263
DS-3350ed2c-326c-4725-9fe2-755e85d17b02 hadoop-ozone/datanode/data4/hdds
195.78 GB 1.13 GB 4.26 GB 15.86
GB 0.08102925 0.06645028 {code}
* Also show the decimal value of threshold in bracket for diskbalancer report
for consistency with other values.
{code:java}
IdealUsage: 0.14747954 | Threshold: 10.0% (0.01) | ThresholdRange: (0.04747954,
0.24747954){code}
* In diskbalancer report for each dn storage report also add *ozoneAvailable
field* and change *TotalCapacity -> OzoneCapacity* and *UsedSpace ->
OzoneUsedSpace.*
* *Add more clarity about delta moves in the diskbalancer status notes.*
was:
Reported by [~ssulav] .
* Make *diskBalancer visible* on top-level datanode help command which was
hidden in this PR HDDS-13649
* Improve diskBalancer help msg to explain how to terminate *stdin input* when
using *-* to provide datanode addresses through standard input.
{code:java}
Usage: ozone admin datanode diskbalancer status [-hV] [--in-service-datanodes]
[--json] [--verbose] [<datanode address>...]
Get DiskBalancer status
[<datanode address>...]
Datanode addresses: one or more, separated by spaces. To read
from stdin, specify '-' and supply one item per line.Port
is optional and defaults to 19864 (CLIENT_RPC port).
Examples: 'DN-1', 'DN-1:19864', '192.168.1.10'.
-h, --help Show this help message and exit. {code}
* All the values in diskbalancer report should be rounded to 5 decimal places.
{code:java}
[dn-1 ~]# ozone admin datanode diskbalancer report --in-service-datanodes
--verbose
Report result:
Datanode: dn1 (10.82.246.167:19864)
Aggregate VolumeDataDensity: 0.20786860859385214
IdealUsage: 0.14747954 | Threshold: 10.0% | ThresholdRange: (0.04747954,
0.24747954)
Volume Details:
StorageID StoragePath
TotalCapacity UsedSpace Container Pre-AllocatedSpace
EffectiveUsedSpace Utilization VolumeDensity
DS-71f33f87-9212-488c-9ae6-4db48c9a48f1 /hadoop-ozone/datanode/data/hdds
349.27 GB 4.71 GB 26.82 GB
75.05 GB 0.21487346 0.06739392
DS-ac73c11c-993a-49f9-b97e-ea61145452e2 /hadoop-ozone/datanode/data2/hdds
195.78 GB 1.11 GB 4.27 GB
16.36 GB 0.08357777 0.06390177
DS-5b27f109-0029-424a-9092-5ae7692b98db hadoop-ozone/datanode/data3/hdds
195.78 GB 2.32 GB 18.06 GB 30.86
GB 0.15760217 0.01012263
DS-3350ed2c-326c-4725-9fe2-755e85d17b02 hadoop-ozone/datanode/data4/hdds
195.78 GB 1.13 GB 4.26 GB 15.86
GB 0.08102925 0.06645028 {code}
* Also show the decimal value of threshold in bracket for diskbalancer report
for consistency with other values.
{code:java}
IdealUsage: 0.14747954 | Threshold: 10.0% (0.01) | ThresholdRange: (0.04747954,
0.24747954){code}
* In diskbalancer report for each dn storage report also add *ozoneAvailable
field* and change *TotalCapacity -> OzoneCapacity* and *UsedSpace ->
OzoneUsedSpace.*
* *Add more clarity about delta moves in the diskbalancer status notes.*
> Expose Disk Balancer CLI in top-level datanode help and improve usability
> -------------------------------------------------------------------------
>
> Key: HDDS-15306
> URL: https://issues.apache.org/jira/browse/HDDS-15306
> Project: Apache Ozone
> Issue Type: Improvement
> Affects Versions: 2.2.0
> Reporter: Gargi Jaiswal
> Assignee: Gargi Jaiswal
> Priority: Major
>
> Reported by [~ssulav] and [~elavarasan]
> * Make *diskBalancer visible* on top-level datanode help command which was
> hidden in this PR HDDS-13649
> * Improve diskBalancer help msg to explain how to terminate *stdin input*
> when using *-* to provide datanode addresses through standard input.
> {code:java}
> Usage: ozone admin datanode diskbalancer status [-hV] [--in-service-datanodes]
> [--json] [--verbose] [<datanode address>...]
> Get DiskBalancer status
> [<datanode address>...]
> Datanode addresses: one or more, separated by spaces. To
> read
> from stdin, specify '-' and supply one item per line.Port
> is optional and defaults to 19864 (CLIENT_RPC port).
> Examples: 'DN-1', 'DN-1:19864', '192.168.1.10'.
> -h, --help Show this help message and exit. {code}
>
> * All the values in diskbalancer report should be rounded to 5 decimal
> places.
> {code:java}
> [dn-1 ~]# ozone admin datanode diskbalancer report --in-service-datanodes
> --verbose
> Report result:
> Datanode: dn1 (10.82.246.167:19864)
> Aggregate VolumeDataDensity: 0.20786860859385214
> IdealUsage: 0.14747954 | Threshold: 10.0% | ThresholdRange: (0.04747954,
> 0.24747954)
> Volume Details:
> StorageID StoragePath
> TotalCapacity UsedSpace Container Pre-AllocatedSpace
> EffectiveUsedSpace Utilization VolumeDensity
> DS-71f33f87-9212-488c-9ae6-4db48c9a48f1
> /hadoop-ozone/datanode/data/hdds 349.27 GB 4.71 GB
> 26.82 GB 75.05 GB 0.21487346 0.06739392
> DS-ac73c11c-993a-49f9-b97e-ea61145452e2
> /hadoop-ozone/datanode/data2/hdds 195.78 GB 1.11 GB
> 4.27 GB 16.36 GB 0.08357777 0.06390177
> DS-5b27f109-0029-424a-9092-5ae7692b98db
> hadoop-ozone/datanode/data3/hdds 195.78 GB 2.32 GB
> 18.06 GB 30.86 GB 0.15760217 0.01012263
> DS-3350ed2c-326c-4725-9fe2-755e85d17b02
> hadoop-ozone/datanode/data4/hdds 195.78 GB 1.13 GB
> 4.26 GB 15.86 GB 0.08102925 0.06645028 {code}
> * Also show the decimal value of threshold in bracket for diskbalancer
> report for consistency with other values.
> {code:java}
> IdealUsage: 0.14747954 | Threshold: 10.0% (0.01) | ThresholdRange:
> (0.04747954, 0.24747954){code}
> * In diskbalancer report for each dn storage report also add *ozoneAvailable
> field* and change *TotalCapacity -> OzoneCapacity* and *UsedSpace ->
> OzoneUsedSpace.*
> * *Add more clarity about delta moves in the diskbalancer status notes.*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]