Skip to content

Commit a8e3dcc

Browse files
DOC-5665 applied feedback
1 parent 845398a commit a8e3dcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/develop/clients/jedis/failover.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ multiConfig
168168
.failureDetector(MultiDbConfig.CircuitBreakerConfig.builder()
169169
.slidingWindowSize(2) // Sliding window size as a duration in seconds.
170170
.failureRateThreshold(10.0f) // Percentage of failures to trigger circuit breaker.
171-
.minNumOfFailures(1000) // Minimum number of failures before circuit breaker is tripped
171+
.minNumOfFailures(1000) // Minimum number of failures before circuit breaker is tripped.
172172
.build())
173173
.failbackSupported(true) // Enable failback.
174-
.failbackCheckInterval(120000) // Check every 2 minutes to see if the unhealthy database has recovered
174+
.failbackCheckInterval(120000) // Check every 2 minutes to see if the unhealthy database has recovered.
175175
.gracePeriod(60000) // Keep database disabled for 60 seconds after it becomes unhealthy.
176176
// Optional: configure retry settings
177177
.commandRetry(MultiDbConfig.RetryConfig.builder()
@@ -180,8 +180,8 @@ multiConfig
180180
.exponentialBackoffMultiplier(2) // Exponential backoff factor multiplied by the wait duration between retries.
181181
.build())
182182
// Optional: configure fast failover
183-
.fastFailover(true) // Force closing connections to unhealthy database on failover
184-
.retryOnFailover(false); // Do not retry failed commands during failover
183+
.fastFailover(true) // Force closing connections to unhealthy database on failover.
184+
.retryOnFailover(false); // Do not retry failed commands during failover.
185185
```
186186

187187
Finally, use the configuration to build the `MultiDbClient`.

0 commit comments

Comments
 (0)