Whamcloud - gitweb
LU-13482 utils: bandwidth limit for lfs migrate
authorTimothy Day <timday@amazon.com>
Tue, 10 Jan 2023 04:55:47 +0000 (04:55 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 13 Feb 2023 17:00:34 +0000 (17:00 +0000)
commit19a18eb298c2fe1476f4de993307c5178e537534
tree58454d12cf5e7b28ff4fddae0eb72d4103296300
parentc1180d36233a2cf5a6684e5ead01bf51f8ffbd39
LU-13482 utils: bandwidth limit for lfs migrate

Add an option -W to control how much bandwidth
an lfs migrate job can consume. The migrate job
will periodically sleep to meet the bandwidth
restrictions.

This patch also adds a --stats option. The option
produces regular logs entries tracking the progress
of the migrate job. The logs are output in YAML
format. The frequency of the logs is controlled
by --stats-interval. This interval defaults to 5
seconds.

Also included are two tests, 56xh and 56xi. The
first verifies the functionality of the bandwidth
control. The second checks that the output is in
valid YAML and that the stats get printed without
using -W.

Lustre-change: https://review.whamcloud.com/49620
Lustre-commit: 55968bfabe351ad37ee810bf69748ffa56d28037

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ic71cceb2434a737e3ad8bd325f719e37a70b0047
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49924
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-migrate.1
lustre/tests/sanity.sh
lustre/utils/lfs.c