Whamcloud - gitweb
LU-13439 lmv: qos stay on current MDT if less full 45/43445/9
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 25 Apr 2021 11:02:19 +0000 (05:02 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 May 2021 02:52:20 +0000 (02:52 +0000)
commit3f6fc483013da443b1494d81efe2d271ac67f901
tree919877fe5e8c3f40884df86f006522a490708333
parent01d34a6b3b2e34f7414f627e4f87993322dafa78
LU-13439 lmv: qos stay on current MDT if less full

Keep "space balanced" subdirectories on the parent MDT if it is less
full than average, since it doesn't make sense to select another MDT
which may occasionally be *more* full.  This also reduces random
"MDT jumping" and needless remote directories.

Reduce the QOS threshold for space balanced LMV layouts, so that the
MDTs don't become too imbalanced before trying to fix the problem.

Change the LUSTRE_OP_MKDIR opcode to be 1 instead of 0, so it can
be seen that a valid opcode has been stored into the structure.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iab34c7eade03d761aa16b08f409f7e5d69cd70bd
Reviewed-on: https://review.whamcloud.com/43445
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c