pgxn: Increase the pageserver response timeout a bit (#11339)

Increase the PS response timeout slightly but noticeably,
so it does not coincide with the default TCP_RTO_MAX.
This commit is contained in:
Folke Behrens
2025-03-21 14:21:53 +00:00
committed by GitHub
parent aeb53fea94
commit 23ad228310

View File

@@ -82,7 +82,8 @@ static int max_reconnect_attempts = 60;
static int stripe_size;
static int pageserver_response_log_timeout = 10000;
static int pageserver_response_disconnect_timeout = 120000; /* 2 minutes */
/* 2.5 minutes. A bit higher than highest default TCP retransmission timeout */
static int pageserver_response_disconnect_timeout = 150000;
typedef struct
{
@@ -1450,7 +1451,7 @@ pg_init_libpagestore(void)
"If the pageserver doesn't respond to a request within this timeout, "
"disconnect and reconnect.",
&pageserver_response_disconnect_timeout,
120000, 100, INT_MAX,
150000, 100, INT_MAX,
PGC_SUSET,
GUC_UNIT_MS,
NULL, NULL, NULL);