Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebalance: Add subcommand 'kadalu rebalance status <>' #300

Merged
merged 4 commits into from
Jan 29, 2023

Conversation

vatsa287
Copy link
Member

@vatsa287 vatsa287 commented Jan 19, 2023

This PR adds support to display status of rebalance processes(migrate-data) at volume level by default and,
status of rebalance processes of all storage units with --detail.

Example:

root@kadalu-dev:/src/mgr# ./bin/kadalu rebalance status dev/vol1 
Name                       : dev/vol1
Type                       : Distribute
ID                         : 2111a5bd-7687-4384-82d8-c46f70dd9985
Progress                   : 66.67 %
Estimate Seconds           : 0
Scanned                    : 13.5MiB / 13.5MiB

Volume vol1 Rebalance Status            : partial
Total Number of Rebalance Process       : 6
Number of Completed Rebalance Process   : 4
Number of Failed Rebalance Process      : 0
root@kadalu-dev:/src/mgr# ./bin/kadalu rebalance status dev/vol1 --detail
Name                                    : dev/vol1
Type                                    : Distribute
ID                                      : 2111a5bd-7687-4384-82d8-c46f70dd9985
Distribute group 1 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s1
     Status                             : not started
     Progress                           : 0 %
     Scanned                            : 0B / 0B
     Duration Seconds                   : 0
     Estimate Seconds                   : 0

Distribute group 2 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s2
     Status                             : complete
     Progress                           : 100 %
     Scanned                            : 39.8MiB / 39.8MiB
     Duration Seconds                   : 2
     Estimate Seconds                   : 0

Distribute group 3 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s3
     Status                             : complete
     Progress                           : 100 %
     Scanned                            : 39.5MiB / 39.5MiB
     Duration Seconds                   : 2
     Estimate Seconds                   : 0

Distribute group 4 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s1_e
     Status                             : not started
     Progress                           : 0 %
     Scanned                            : 0B / 0B
     Duration Seconds                   : 0
     Estimate Seconds                   : 0

Distribute group 5 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s2_e
     Status                             : complete
     Progress                           : 100 %
     Scanned                            : 1.09MiB / 1.09MiB
     Duration Seconds                   : 0
     Estimate Seconds                   : 0

Distribute group 6 
    Storage unit 1                      : kadalu-dev:/exports/vol1/s3_e
     Status                             : complete
     Progress                           : 100 %
     Scanned                            : 1.09MiB / 1.09MiB
     Duration Seconds                   : 0
     Estimate Seconds                   : 0

Volume vol1 Rebalance Status            : partial
Total Number of Rebalance Process       : 6
Number of Completed Rebalance Process   : 4
Number of Failed Rebalance Process      : 0

Updates: kadalu/rfcs#26
Signed-off-by: Shree Vatsa N [email protected]

@vatsa287 vatsa287 marked this pull request as draft January 19, 2023 10:29
@vatsa287 vatsa287 force-pushed the migrate-data-status branch 3 times, most recently from a68cae9 to a8e8248 Compare January 23, 2023 12:06
Signed-off-by: Shree Vatsa N <[email protected]>
@vatsa287 vatsa287 force-pushed the migrate-data-status branch from a8e8248 to e20c7db Compare January 23, 2023 12:12
Signed-off-by: Shree Vatsa N <[email protected]>
@vatsa287 vatsa287 force-pushed the migrate-data-status branch from 5dfb824 to c0f8669 Compare January 23, 2023 12:33
@vatsa287 vatsa287 marked this pull request as ready for review January 23, 2023 12:45
Signed-off-by: Shree Vatsa N <[email protected]>
@vatsa287 vatsa287 force-pushed the migrate-data-status branch from 92cbe26 to c837f38 Compare January 24, 2023 08:42
@aravindavk aravindavk merged commit 5e0aabf into kadalu:main Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants