mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user