Skip to content

Commit

Permalink
Increase default client_max_routing
Browse files Browse the repository at this point in the history
  • Loading branch information
x4m committed Dec 4, 2019
1 parent eb72997 commit b98d34d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion odyssey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sources/config_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit b98d34d

Please sign in to comment.