@@ -482,7 +482,7 @@ def __init__(
482
482
require_full_coverage = False ,
483
483
reinitialize_steps = 10 ,
484
484
read_from_replicas = False ,
485
- dynamic_startup_nodes = False ,
485
+ dynamic_startup_nodes = True ,
486
486
url = None ,
487
487
** kwargs ,
488
488
):
@@ -512,12 +512,12 @@ def __init__(
512
512
primary and its replications in a Round-Robin manner.
513
513
:dynamic_startup_nodes: 'bool'
514
514
Set the RedisCluster's startup nodes to all of the discovered nodes.
515
- If true, the cluster's discovered nodes will be used to determine the
516
- cluster nodes-slots mapping in the next topology refresh.
515
+ If true (default value) , the cluster's discovered nodes will be used to
516
+ determine the cluster nodes-slots mapping in the next topology refresh.
517
517
It will remove the initial passed startup nodes if their endpoints aren't
518
518
listed in the CLUSTER SLOTS output.
519
519
If you use dynamic DNS endpoints for startup nodes but CLUSTER SLOTS lists
520
- specific IP addresses, keep it at false.
520
+ specific IP addresses, it is best to set it to false.
521
521
:cluster_error_retry_attempts: 'int'
522
522
Retry command execution attempts when encountering ClusterDownError
523
523
or ConnectionError
@@ -1293,7 +1293,7 @@ def __init__(
1293
1293
from_url = False ,
1294
1294
require_full_coverage = False ,
1295
1295
lock = None ,
1296
- dynamic_startup_nodes = False ,
1296
+ dynamic_startup_nodes = True ,
1297
1297
** kwargs ,
1298
1298
):
1299
1299
self .nodes_cache = {}
0 commit comments