From 90aec423310b903cdc13e1b5a2d368efc1e0038a Mon Sep 17 00:00:00 2001 From: Derek Su Date: Thu, 28 Nov 2024 22:04:27 +0800 Subject: [PATCH] fix: decrease ctrlr_loss_timeout_sec for base bdev Longhorn 9874 Signed-off-by: Derek Su --- pkg/types/types.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/types/types.go b/pkg/types/types.go index 19e75bf4..d427efd7 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -23,9 +23,15 @@ const ( ShallowCopyStateError = "error" DefaultCtrlrLossTimeoutSec = 30 - // DefaultReconnectDelaySec can't be more than DefaultFastIoFailTimeoutSec, same for non-default values. + // DefaultReconnectDelaySec can't be more than DefaultFastIOFailTimeoutSec. DefaultReconnectDelaySec = 2 DefaultFastIOFailTimeoutSec = 15 + + DefaultReplicaCtrlrLossTimeoutSec = 15 + // DefaultReplicaReconnectDelaySec can't be more than DefaultReplicaFastIOFailTimeoutSec. + DefaultReplicaReconnectDelaySec = 2 + DefaultReplicaFastIOFailTimeoutSec = 10 + // DefaultTransportAckTimeout value is not the timeout second. // The timeout formula is 2^(transport_ack_timeout) msec. // DefaultTransportAckTimeout is 14, so the default timeout is 2^14 = 16384 msec = 16.384 sec.