From b2fb481e229d2df96eb26c7ea45de542dfb998f0 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Sun, 1 Dec 2024 19:54:13 +0800 Subject: [PATCH] feat: decrease transport_ack_timeout Decreasing transport_ack_timeout value for imporving the error detection of the transport layer. Longhorn 9874 Signed-off-by: Derek Su --- pkg/spdk/disk/nvme/nvme.go | 2 +- pkg/spdk/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/spdk/disk/nvme/nvme.go b/pkg/spdk/disk/nvme/nvme.go index b7003892..7162222b 100644 --- a/pkg/spdk/disk/nvme/nvme.go +++ b/pkg/spdk/disk/nvme/nvme.go @@ -20,7 +20,7 @@ const ( diskCtrlrLossTimeoutSec = 30 diskReconnectDelaySec = 2 diskFastIOFailTimeoutSec = 15 - diskTransportAckTimeout = 14 + diskTransportAckTimeout = 10 diskKeepAliveTimeoutMs = 10000 diskMultipath = "disable" ) diff --git a/pkg/spdk/types.go b/pkg/spdk/types.go index a56ac937..004cdb58 100644 --- a/pkg/spdk/types.go +++ b/pkg/spdk/types.go @@ -49,7 +49,7 @@ const ( replicaCtrlrLossTimeoutSec = 15 replicaReconnectDelaySec = 2 replicaFastIOFailTimeoutSec = 10 - replicaTransportAckTimeout = 14 + replicaTransportAckTimeout = 10 replicaKeepAliveTimeoutMs = 10000 replicaMultipath = "disable" )