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
{{< note >}}SCE requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
153
+
{{< note >}}SCH requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
154
154
protocol, so you must set `Protocol:3` explicitly when you connect.
155
155
{{< /note >}}
156
156
157
157
The `hitless.Config` object accepts the following parameters:
158
158
159
159
| Name | Description |
160
160
|------ |------------- |
161
-
|`Mode`| Whether or not to enable SCE. The options are `hitless.MaintNotificationsDisabled`, `hitless.MaintNotificationsEnabled` (require SCE and abort the connection if not supported), and `hitless.MaintNotificationsAuto` (require SCE and fall back to a non-SCE connection if not supported). The default is `hitless.MaintNotificationsAuto`. |
161
+
|`Mode`| Whether or not to enable SCH. The options are `hitless.MaintNotificationsDisabled`, `hitless.MaintNotificationsEnabled` (require SCH and abort the connection if not supported), and `hitless.MaintNotificationsAuto` (require SCH and fall back to a non-SCH connection if not supported). The default is `hitless.MaintNotificationsAuto`. |
162
162
|`RelaxedTimeout`| The timeout to use for commands and connections while the server is performing maintenance. The default is 10 seconds. |
163
163
|`HandoffTimeout`| The timeout to connect to the replacement node. The default is 15 seconds. |
164
164
|`MaxHandoffRetries`| The maximum number of times to retry connecting to the replacement node. The default is 3. |
Copy file name to clipboardExpand all lines: content/develop/clients/lettuce/connect.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,16 +255,16 @@ public class Pool {
255
255
256
256
In this setup, `LettuceConnectionFactory` is a custom class you would need to implement, adhering to Apache Commons Pool's `PooledObjectFactory` interface, to manage lifecycle events of pooled `StatefulRedisConnection` objects.
257
257
258
-
## Connect using Seamless client experience (SCE)
258
+
## Connect using Smart client handoffs (SCH)
259
259
260
-
*Seamless client experience (SCE)* is a feature of Redis Cloud and
260
+
*Smart client handoffs (SCH)* is a feature of Redis Cloud and
261
261
Redis Enterprise servers that lets them actively notify clients
262
262
about planned server maintenance shortly before it happens. This
263
263
lets a client take action to avoid disruptions in service.
264
-
See [Seamless client experience]({{< relref "/develop/clients/sce" >}})
265
-
for more information about SCE.
264
+
See [Smart client handoffs]({{< relref "/develop/clients/sch" >}})
265
+
for more information about SCH.
266
266
267
-
To enable SCE on the client, create a `MaintenanceEventsOptions` object
267
+
To enable SCH on the client, create a `MaintenanceEventsOptions` object
268
268
and pass it to the `ClientOptions` builder using the `supportMaintenanceEvents()` method:
{{< note >}}SCE requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
354
+
{{< note >}}SCH requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
355
355
protocol, so you must set the `RESP:3` option explicitly when you connect.
356
356
{{< /note >}}
357
357
358
358
The available options are:
359
359
360
-
-`maintPushNotifications`: (`string`) Whether or not to enable SCE. The options are
361
-
-`'disabled'`: don't use SCE
362
-
-`'enabled'`: attempt to activate SCE on the server and abort the connection if it isn't supported
363
-
-`'auto'`: attempt to activate SCE on the server and fall back to a non-SCE
360
+
-`maintPushNotifications`: (`string`) Whether or not to enable SCH. The options are
361
+
-`'disabled'`: don't use SCH
362
+
-`'enabled'`: attempt to activate SCH on the server and abort the connection if it isn't supported
363
+
-`'auto'`: attempt to activate SCH on the server and fall back to a non-SCH
364
364
connection if it isn't supported. This is the default.
365
365
-`maintRelaxedCommandTimeout`: (`number`) The command timeout to use while the server is
366
366
performing maintenance. The default is 10000 (10 seconds). If a timeout happens during the maintenance period, the client receives a `CommandTimeoutDuringMaintenance` error.
for more information about custom retry strategies, with example code.
255
255
256
-
## Connect using Seamless client experience (SCE)
256
+
## Connect using Smart client handoffs (SCH)
257
257
258
-
*Seamless client experience (SCE)* is a feature of Redis Cloud and
258
+
*Smart client handoffs (SCH)* is a feature of Redis Cloud and
259
259
Redis Enterprise servers that lets them actively notify clients
260
260
about planned server maintenance shortly before it happens. This
261
261
lets a client take action to avoid disruptions in service.
262
-
See [Seamless client experience]({{< relref "/develop/clients/sce" >}})
263
-
for more information about SCE.
262
+
See [Smart client handoffs]({{< relref "/develop/clients/sch" >}})
263
+
for more information about SCH.
264
264
265
-
To enable SCE on the client, pass a `MaintenanceEventsConfig` object
265
+
To enable SCH on the client, pass a `MaintenanceEventsConfig` object
266
266
during the connection, as shown in the following example:
267
267
268
268
```py
@@ -282,14 +282,14 @@ r = redis.Redis(
282
282
)
283
283
```
284
284
285
-
{{< note >}}SCE requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
285
+
{{< note >}}SCH requires the [RESP3]({{< relref "/develop/reference/protocol-spec#resp-versions" >}})
286
286
protocol, so you must set `protocol=3` explicitly when you connect.
287
287
{{< /note >}}
288
288
289
289
The `MaintenanceEventsConfig` constructor accepts the following parameters:
290
290
291
291
| Name | Type | Default | Description |
292
292
|------|------|---------|-------------|
293
-
|`enabled`|`bool`|`False`| Whether or not to enable SCE. |
293
+
|`enabled`|`bool`|`False`| Whether or not to enable SCH. |
294
294
|`proactive_reconnect`|`bool`|`True`| Whether or not to automatically reconnect when a node is replaced. |
295
295
|`relax_timeout`|`int`|`20`| The timeout (in seconds) to use while the server is performing maintenance. A value of `-1` disables the relax timeout and just uses the normal timeout during maintenance. |
0 commit comments