Whamcloud - gitweb
LU-14825 lod: pool spilling 89/43989/20
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 7 Jul 2021 08:15:27 +0000 (11:15 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 31 Aug 2021 19:13:53 +0000 (19:13 +0000)
commitbe958a7bde7351856db6632d06e72e23ce916b13
tree5eb081b81d416955d59999f54ade8606ba975d33
parent6fd75f264c5f5c186bbfe559e1a98fb3769d8128
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
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