Merge pull request #3797 from citusdata/increase_the_timeout

Increase the default value of `citus.node_connection_timeout`
pull/3803/head
Önder Kalacı 2020-04-24 16:08:50 +02:00 committed by GitHub
commit 50346d0b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
#include "utils/memutils.h"
int NodeConnectionTimeout = 5000;
int NodeConnectionTimeout = 30000;
int MaxCachedConnectionsPerWorker = 1;
HTAB *ConnectionHash = NULL;

View File

@ -450,7 +450,7 @@ RegisterCitusConfigVariables(void)
gettext_noop("Sets the maximum duration to connect to worker nodes."),
NULL,
&NodeConnectionTimeout,
5 * MS_PER_SECOND, 10 * MS, MS_PER_HOUR,
30 * MS_PER_SECOND, 10 * MS, MS_PER_HOUR,
PGC_USERSET,
GUC_UNIT_MS | GUC_STANDARD,
NULL, NULL, NULL);