File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/develop/clients/jedis Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
187187Finally, use the configuration to build the ` MultiDbClient ` .
You can’t perform that action at this time.
0 commit comments