Skip to content

Commit 73a1de9

Browse files
Merge pull request #2407 from redis/DOC-5954-jedis-lagaware-strategy
DOC-5954 more detail about LagAwareStrategy config options
2 parents 94809f9 + 08f655d commit 73a1de9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/develop/clients/jedis/failover.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ MultiDbClient client = MultiDbClient.builder()
276276
## Health check configuration
277277

278278
There are several strategies available for health checks that you can configure using the
279-
`MultiClusterClientConfig` builder. The sections below explain these strategies
279+
`MultiDbConfig` builder. The sections below explain these strategies
280280
in more detail.
281281

282282
### `PingStrategy` (default)
@@ -320,6 +320,16 @@ MultiDbConfig.DatabaseConfig dbConfig =
320320
.build();
321321
```
322322

323+
The `LagAwareStrategy.Config` builder has the following options:
324+
325+
| Builder method | Default value | Description|
326+
| --- | --- | --- |
327+
| `sslOptions()` | `null` | Standard SSL options for connecting to the REST API. |
328+
| `interval()` | `5000` | Interval in milliseconds between health checks. |
329+
| `timeout()` | `3000` | Timeout in milliseconds for health check requests. |
330+
| `extendedCheckEnabled()` | `false` | Enable extended lag checking (this includes lag validation in addition to the standard datapath validation). |
331+
| `availabilityLagTolerance()` | `100` | Maximum lag tolerance in milliseconds for extended lag checking. |
332+
323333
### Custom health check strategy
324334

325335
You can supply your own custom health check strategy by

0 commit comments

Comments
 (0)