Whamcloud - gitweb
LU-17379 mgc: try MGS nodes faster 22/54022/9
authorMikhail Pershin <mpershin@whamcloud.com>
Mon, 22 Jan 2024 12:58:23 +0000 (15:58 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:37:37 +0000 (15:37 +0000)
commit94d05d0737db256a64626bfe6fa9801819230d8a
tree0a66d235128017f3a89097a6e3a1bea9200f4a5a
parent1ec1858f64efbcf40d603eec4781ac29a3bf40eb
LU-17379 mgc: try MGS nodes faster

Re-organize import_select_connection to try all NIDs
faster at least at first round.

- check NID LNET discovery status and skip those not
  discovered yet on first round, at next round just
  select the least recently used one
- reset AT timeout to minimal values at first round
- track per-connection total attempts to connect,
  how many were replied, discovery status and output
  this in import stats

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ib4d043e82bf156cc3e7c9ddeff0055790edcc9ee
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54022
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_import.h
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/import.c
lustre/tests/conf-sanity.sh