Skip to content

Commit 8db95aa

Browse files
committed
change some client defaults
1 parent c78dcf2 commit 8db95aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

baseplate/clients/redis_cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def cluster_pool_from_config(
5151
* ``nodemanager_follow_cluster``: Tell the node manager to reuse the last set of
5252
nodes it was operating on when intializing.
5353
* ``read_from_replicas``: (Boolean) Whether the client should send all read queries to
54-
replicas instead of the primary
54+
replicas instead of just the primary
5555
* ``timeout``: how long to wait for sockets to connect. e.g.
5656
``200 milliseconds`` (:py:func:`~baseplate.lib.config.Timespan`)
5757
"""
@@ -62,8 +62,8 @@ def cluster_pool_from_config(
6262
{
6363
"url": config.String,
6464
"max_connections": config.Optional(config.Integer, default=50),
65-
"timeout": config.Optional(config.Timespan, default=100),
66-
"read_from_replicas": config.Optional(config.Boolean, default=False),
65+
"timeout": config.Optional(config.Timespan, default=None),
66+
"read_from_replicas": config.Optional(config.Boolean, default=True),
6767
"skip_full_coverage_check": config.Optional(config.Boolean, default=True),
6868
"nodemanager_follow_cluster": config.Optional(config.Boolean, default=None),
6969
"decode_responses": config.Optional(config.Boolean, default=True),

0 commit comments

Comments
 (0)