Procedure
Run the following command on any node in the cluster to display an overview of recovery and migration tasks:
zbs-meta reposition summary [--chunk_id <CHUNK_ID>]
Parameter description
| Parameter | Description |
|---|---|
--chunk_id <CHUNK_ID> | Optional. Specifies whether to view the information about the specified node. |
Output example
chunk ID Cap Src Cap Replace Cap Dst Perf Src Perf Replace Perf Thin Dst Perf Thick Dst
---------- --------- ------------- --------- ---------- -------------- --------------- ----------------
1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0Output note
| Parameter | Description |
|---|---|
Chunk ID | The chunk ID of the node. |
Cap Src | The number of recovery and migration tasks with this node as the source in the capacity tier. |
Cap Replace | The number of recovery and migration tasks with this node as the replacement in the capacity tier. |
Cap Dst | The number of recovery and migration tasks with this node as the destination in the capacity tier. |
Perf Src | The number of recovery and migration tasks with this node as the source in the performance tier. |
Perf Replace | The number of recovery and migration tasks with this node as the replacement in the performance tier. |
Perf Thin Dst | The number of non-pinned recovery and migration tasks with this node as the destination in the performance tier. |
Perf Thick Dst | The number of pin-in-performance-tier recovery and migration tasks that use this node as the destination. |
Procedure
Run the following command on any node in the cluster to display detailed information about recovery and migration tasks:
zbs-meta reposition show
Output example
1. Recover Manager params:
Reposition thread wakeup interval: 4s
Current generate cmds per round limit: 1024
Current cap distribute cmds per chunk limit: 128
Current perf distribute cmds per chunk limit: 256
1.1 Recover params:
Recover enable: True
Recover scan interval: 60s
1.2 Migrate params:
Migrate enable: True
Migrate scan interval: 120s
Perf thick ratio: 0.722, load: LOAD_HIGH
Perf thin ratio: 0.494, load: LOAD_LOW
Cap ratio: 0.346, load: LOAD_LOW
2. Recover Handler params:
Reposition mode: REPOSITION_STATIC
Max cap reposition concurrency limit: 64
Max perf reposition concurrency limit: 128
Static cap reposition concurrency limit: 16
Static perf reposition concurrency limit: 32
Owner Cid 1 Reposition Concurrency Info
Cmd Cid Cur Cap Concurrency Cur Cap Concurrency Limit Cur Perf Concurrency Cur Perf Concurrency Limit
--------- --------------------- --------------------------- ---------------------- ----------------------------
1 0 16 32 32
2 0 16 32 32
3 0 16 0 32
4 0 16 0 32
Owner Cid 2 Reposition Concurrency Info
Cmd Cid Cur Cap Concurrency Cur Cap Concurrency Limit Cur Perf Concurrency Cur Perf Concurrency Limit
--------- --------------------- --------------------------- ---------------------- ----------------------------
1 0 16 0 32
2 0 16 0 32
3 0 16 0 32
4 0 16 0 32
Owner Cid 3 Reposition Concurrency Info
Cmd Cid Cur Cap Concurrency Cur Cap Concurrency Limit Cur Perf Concurrency Cur Perf Concurrency Limit
--------- --------------------- --------------------------- ---------------------- ----------------------------
1 0 16 0 32
3 0 16 0 32
Owner Cid 4 Reposition Concurrency Info
Cmd Cid Cur Cap Concurrency Cur Cap Concurrency Limit Cur Perf Concurrency Cur Perf Concurrency Limit
--------- --------------------- --------------------------- ---------------------- ----------------------------
1 0 16 15 32
2 0 16 15 32
3 0 16 0 32
4 0 16 0 32Output note
| Parameter | Description |
|---|---|
Reposition thread wakeup interval | The interval at which meta recovery and migration threads wake up. |
Current generate cmds per round limit | The maximum number of recovery and migration commands generated per round. |
Current cap distribute cmds per chunk limit | The maximum number of capacity tier recovery and migration commands generated per chunk. |
Current perf distribute cmds per chunk limit | The maximum number of performance tier recovery and migration commands generated per chunk. |
Recover scan interval | The interval for data recovery scans. |
Migrate scan interval | The interval for data migration scans. |
Perf thick load | The load level of pin-in-performance-tier tasks in the performance tier. |
Perf thin load | The load level of non-pinned tasks in the performance tier. |
Cap load | The load threshold in the capacity tier. |
Reposition mode | The current mode for concurrency limits of recovery and migration tasks (static/dynamic). |
Max cap reposition concurrency limit | The maximum concurrency for recovery and migration tasks in the capacity tier. |
Max perf reposition concurrency limit | The maximum concurrency for recovery and migration tasks in the performance tier. |
Static cap reposition concurrency limit | The concurrency limit for recovery and migration tasks in the capacity tier under static mode. |
Static perf reposition concurrency limit | The concurrency limit for recovery and migration tasks in the performance tier under static mode. |
Cur Cap Concurrency | The current concurrency of recovery and migration tasks in the capacity tier. |
Cur Cap Concurrency Limit | The current concurrency limit of recovery and migration tasks in the capacity tier. |
Cur Perf Concurrency | The current concurrency of recovery and migration tasks in the performance tier. |
Cur Perf Concurrency Limit | The current concurrency limit of recovery and migration tasks in the performance tier. |
Procedure
Run the following command on any node in the cluster to modify the settings of recovery and migration tasks:
zbs-meta reposition update [--mode <MODE>] [--static_cap_reposition_concurrency_limit <STATIC_CAP_REPOSITION_CONCURRENCY_LIMIT>] [--static_perf_reposition_concurrency_limit <STATIC_PERF_REPOSITION_CONCURRENCY_LIMIT>] [--static_generate_cmds_per_round_limit <STATIC_GENERATE_CMDS_PER_ROUND_LIMIT>] [--static_cap_distribute_cmds_per_chunk_limit <STATIC_CAP_DISTRIBUTE_CMDS_PER_CHUNK_LIMIT>] [--static_perf_distribute_cmds_per_chunk_limit <STATIC_PERF_DISTRIBUTE_CMDS_PER_CHUNK_LIMIT>]
Parameter description
| Parameter | Description |
|---|---|
--mode <MODE> | Optional. Changes the concurrency limit mode: 0 = dynamic, 1 = static. |
--static_cap_reposition_concurrency_limit <STATIC_CAP_REPOSITION_CONCURRENCY_LIMIT> | Optional. Changes the maximum concurrency for recovery and migration tasks in the capacity tier under static mode. |
--static perf reposition concurrency limit <STATIC_PERF_REPOSITION_CONCURRENCY_LIMIT> | Optional. Changes the maximum concurrency for recovery and migration tasks in the performance tier under static mode. |
--static_generate_cmds_per_round_limit <STATIC_GENERATE_CMDS_PER_ROUND_LIMIT> | Optional. Specifies the maximum number of recovery and migration commands generated per round. |
--static_cap_distribute_cmds_per_chunk_limit <STATIC_CAP_DISTRIBUTE_CMDS_PER_CHUNK_LIMIT> | Optional. Specifies the maximum number of capacity tier recovery and migration commands generated per chunk. |
--static_perf_distribute_cmds_per_chunk_limit <STATIC_PERF_DISTRIBUTE_CMDS_PER_CHUNK_LIMIT> | Optional. Specifies the maximum number of performance tier recovery and migration commands generated per chunk. |
Output note
If the command succeeds, no output is displayed.