You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/multi_database.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
Multi-database client (Active-Active)
2
2
=====================================
3
3
4
-
The multi-database client allows your application to connect to multiple Redis databases, which are typically replicas of each other.
5
-
It is designed to work with Redis Software and Redis Cloud Active-Active setups.
6
-
The client continuously monitors database health, detects failures, and automatically fails over to the next healthy database using a configurable strategy.
4
+
The multi-database client allows your application to connect to multiple Redis databases, which are typically replicas of each other.
5
+
It is designed to work with Redis Software and Redis Cloud Active-Active setups.
6
+
The client continuously monitors database health, detects failures, and automatically fails over to the next healthy database using a configurable strategy.
7
7
When the original database becomes healthy again, the client can automatically switch back to it.
8
8
9
9
Key concepts
@@ -29,7 +29,7 @@ Key concepts
29
29
fine-grain tuned configuration of triggering fail over based on organic traffic.
30
30
31
31
- Failover strategy:
32
-
The default strategy is based on staticly configured weights. It prefers the highest weighted healthy database.
32
+
The default strategy is based on statically configured weights. It prefers the highest weighted healthy database.
33
33
34
34
- Command retry:
35
35
Command execution supports retry with backoff. Low-level client retries are disabled and a global retry
@@ -269,9 +269,9 @@ configuration defined in the `MultiDBConfig` class.
269
269
To avoid false positives, you can configure amount of health check probes and also
270
270
define one of the health check policies to evaluate probes result.
271
271
272
-
**HealthCheckPolicies.HEALTHY_ALL** - (default) All probes should be successful.
273
-
**HealthCheckPolicies.HEALTHY_MAJORITY** - Majority of probes should be successful.
274
-
**HealthCheckPolicies.HEALTHY_ANY** - Any of probes should be successful.
272
+
**HealthCheckPolicies.HEALTHY_ALL** - (default) All probes should be successful.
273
+
**HealthCheckPolicies.HEALTHY_MAJORITY** - Majority of probes should be successful.
274
+
**HealthCheckPolicies.HEALTHY_ANY** - Any of probes should be successful.
275
275
276
276
PingHealthCheck (default)
277
277
^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -357,8 +357,8 @@ You can add custom health checks for specific requirements:
357
357
Failure Detection (Reactive Monitoring)
358
358
-----------------
359
359
360
-
The failure detector monitors command failures and marks a database as unhealthy when its failure rate exceeds a defined threshold within a sliding time window.
361
-
Under real traffic conditions, this reactive detection mechanism likely triggers earlier than proactive health checks.
360
+
The failure detector monitors command failures and marks a database as unhealthy when its failure rate exceeds a defined threshold within a sliding time window.
361
+
Under real traffic conditions, this reactive detection mechanism likely triggers earlier than proactive health checks.
362
362
You can extend the set of failure detectors by implementing your own and configuring it through the `MultiDBConfig` class.
363
363
364
364
By default the failure detector is configured for 1000 failures and a 10% failure rate
0 commit comments