public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Improve failover times for pNFS mirroring
@ 2023-08-18 13:41 trondmy
  2023-08-18 13:41 ` [PATCH 1/4] SUNRPC: Set the TCP_SYNCNT to match the socket timeout trondmy
  0 siblings, 1 reply; 5+ messages in thread
From: trondmy @ 2023-08-18 13:41 UTC (permalink / raw)
  To: Anna Schumaker; +Cc: linux-nfs

From: Trond Myklebust <trond.myklebust@hammerspace.com>

When a data server goes down, it can currently take 3 minutes for the
RPC connection attempt to give up, and return control to the NFS layer.
If the file is mirrored, we usually want to fail the attempt to the
downed data server much earlier, and retry using one of the other
mirrors.
This patchset sets the connect timeout to be closer to the I/O timeout
value for the case of pNFS to NFSv3 data servers.

Trond Myklebust (4):
  SUNRPC: Set the TCP_SYNCNT to match the socket timeout
  SUNRPC: Refactor and simplify connect timeout
  SUNRPC: Allow specification of TCP client connect timeout at setup
  NFS/pNFS: Set the connect timeout for the pNFS flexfiles driver

 fs/nfs/client.c             |  2 ++
 fs/nfs/internal.h           |  2 ++
 fs/nfs/nfs3client.c         |  3 ++
 fs/nfs/pnfs_nfs.c           |  3 ++
 include/linux/sunrpc/clnt.h |  2 ++
 include/linux/sunrpc/xprt.h |  2 ++
 net/sunrpc/clnt.c           |  2 ++
 net/sunrpc/xprtsock.c       | 58 +++++++++++++++++++++++++++----------
 8 files changed, 59 insertions(+), 15 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-18 13:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18 13:41 [PATCH 0/4] Improve failover times for pNFS mirroring trondmy
2023-08-18 13:41 ` [PATCH 1/4] SUNRPC: Set the TCP_SYNCNT to match the socket timeout trondmy
2023-08-18 13:41   ` [PATCH 2/4] SUNRPC: Refactor and simplify connect timeout trondmy
2023-08-18 13:41     ` [PATCH 3/4] SUNRPC: Allow specification of TCP client connect timeout at setup trondmy
2023-08-18 13:41       ` [PATCH 4/4] NFS/pNFS: Set the connect timeout for the pNFS flexfiles driver trondmy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox