Whamcloud - gitweb
LU-13482 utils: bandwidth limit for lfs migrate 20/49620/4
authorTimothy Day <timday@amazon.com>
Tue, 10 Jan 2023 04:55:47 +0000 (04:55 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Feb 2023 06:48:29 +0000 (06:48 +0000)
commit55968bfabe351ad37ee810bf69748ffa56d28037
tree7c3fc00b1202946f19d1161a1bc5f002beb0eaab
parentbb35f7a0688e9a74493c18412caf0756d5f525ac
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.

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