summaryrefslogtreecommitdiff
path: root/redis/cluster.py
diff options
context:
space:
mode:
authorBar Shaul <88437685+barshaul@users.noreply.github.com>2022-06-27 13:28:09 +0300
committerGitHub <noreply@github.com>2022-06-27 13:28:09 +0300
commit11cf66afc9b764248f12761138cc28a2b3e1366c (patch)
tree14bf8bd455faeb3f98f16b5eece8e2abd12d6f3b /redis/cluster.py
parent8b18d5b2b63ebf218a1f116367a1a09c3d402192 (diff)
downloadredis-py-11cf66afc9b764248f12761138cc28a2b3e1366c.tar.gz
Changed dynamic_startup_nodes default value to 'True' to prevent breaking backward compatibility (#2251)
Diffstat (limited to 'redis/cluster.py')
-rw-r--r--redis/cluster.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/redis/cluster.py b/redis/cluster.py
index c5b6c8d..b301cdc 100644
--- a/redis/cluster.py
+++ b/redis/cluster.py
@@ -482,7 +482,7 @@ class RedisCluster(AbstractRedisCluster, RedisClusterCommands):
require_full_coverage=False,
reinitialize_steps=10,
read_from_replicas=False,
- dynamic_startup_nodes=False,
+ dynamic_startup_nodes=True,
url=None,
**kwargs,
):
@@ -512,12 +512,12 @@ class RedisCluster(AbstractRedisCluster, RedisClusterCommands):
primary and its replications in a Round-Robin manner.
:dynamic_startup_nodes: 'bool'
Set the RedisCluster's startup nodes to all of the discovered nodes.
- If true, the cluster's discovered nodes will be used to determine the
- cluster nodes-slots mapping in the next topology refresh.
+ If true (default value), the cluster's discovered nodes will be used to
+ determine the cluster nodes-slots mapping in the next topology refresh.
It will remove the initial passed startup nodes if their endpoints aren't
listed in the CLUSTER SLOTS output.
If you use dynamic DNS endpoints for startup nodes but CLUSTER SLOTS lists
- specific IP addresses, keep it at false.
+ specific IP addresses, it is best to set it to false.
:cluster_error_retry_attempts: 'int'
Retry command execution attempts when encountering ClusterDownError
or ConnectionError
@@ -1293,7 +1293,7 @@ class NodesManager:
from_url=False,
require_full_coverage=False,
lock=None,
- dynamic_startup_nodes=False,
+ dynamic_startup_nodes=True,
**kwargs,
):
self.nodes_cache = {}