Whamcloud - gitweb
LU-14825 lod: pool spilling 89/43989/22
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 7 Jul 2021 08:15:27 +0000 (11:15 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Sep 2021 04:42:50 +0000 (04:42 +0000)
commit0a998f4723f58e68d0fe75934df5c282eb529337
tree63b9adc620ff6ef1994657f6b5e3ae6a7f21911e
parent2d714041ba718853be700960b76769a8fb44cf51
LU-14825 lod: pool spilling

To avoid the problem of the fast pool becoming full this patch
introduces so-called pool spilling: for every OST pool a target
pool can be assigned which will be used instead of original one
if the original one's use is over specified threshold:

  lctl set_param lod.*.pool.pool1.spill_target=pool2
  lctl set_param lod.*.pool.pool1.spill_threshold_pct=80

i.e. once pool1 is 80+% used, then new files will be created on
pool2.

A chain (up to 10 at the moment) can be configured using the
settings like above when different OST pools are considered
one by one.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I7f6dd4931ba64f3db8a7ae6a3b185f942a629ed7
Reviewed-on: https://review.whamcloud.com/43989
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_internal.h
lustre/lod/lod_pool.c
lustre/lod/lod_qos.c
lustre/lod/lproc_lod.c
lustre/tests/ost-pools.sh