Whamcloud - gitweb
LU-17379 mgc: try MGS nodes faster
authorMikhail Pershin <mpershin@whamcloud.com>
Mon, 22 Jan 2024 12:58:23 +0000 (15:58 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 8 May 2024 05:58:25 +0000 (05:58 +0000)
commit57ac09024f6abac151a42321c0a8aa77f93031b8
tree0ef0be1be5a4f7953deac20ee7897e43c2b9b460
parent5623018dcdd484dbc01e6c267fe0b95d95a80eb8
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

Lustre-change: https://review.whamcloud.com/54022
Lustre-commit: 94d05d0737db256a64626bfe6fa9801819230d8a

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