From b98d34d48954bae743e7a559823df2de7de04750 Mon Sep 17 00:00:00 2001 From: Andrey Borodin Date: Wed, 4 Dec 2019 14:29:32 +0500 Subject: [PATCH] Increase default client_max_routing --- odyssey.conf | 2 +- sources/config_reader.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/odyssey.conf b/odyssey.conf index 9342bac82..ed3b7360c 100644 --- a/odyssey.conf +++ b/odyssey.conf @@ -244,7 +244,7 @@ keepalive 7200 # message is read and connection is assigned route to the database. Most of the # routing time is occupied with TLS handshake. # -# Unset or zero 'client_max_routing' will set it's value equal to 4 * workers +# Unset or zero 'client_max_routing' will set it's value equal to 16 * workers # # client_max_routing 32 diff --git a/sources/config_reader.c b/sources/config_reader.c index aa4fa7889..757f32200 100644 --- a/sources/config_reader.c +++ b/sources/config_reader.c @@ -1064,6 +1064,6 @@ od_config_reader_import(od_config_t *config, od_rules_t *rules, od_error_t *erro od_config_reader_close(&reader); if (!config->client_max_routing) - config->client_max_routing = config->workers * 4; + config->client_max_routing = config->workers * 16; return rc; }