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: content/develop/clients/nodejs/connect.md
+5-18Lines changed: 5 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,6 @@ during the connection:
345
345
constclient=createClient({
346
346
RESP:3,
347
347
maintPushNotifications:'auto',
348
-
maintMovingEndpointType:'auto',
349
348
maintRelaxedCommandTimeout:10000,
350
349
maintRelaxedSocketTimeout:10000,
351
350
...
@@ -362,23 +361,11 @@ The available options are:
362
361
-`'disabled'`: don't use SCE
363
362
-`'enabled'`: attempt to activate SCE on the server and abort the connection if it isn't supported
364
363
-`'auto'`: attempt to activate SCE on the server and fall back to a non-SCE
365
-
connection if it isn't supported. This is the default.
366
-
-`maintRelaxedCommandTimeout`: (`number`) The command timeout to use when the server is
367
-
in maintenance mode. The default is 10000 (10 seconds). If a timeout happens during the
368
-
maintenance period, the client receives a `CommandTimeoutDuringMaintenance` error.
369
-
-`maintRelaxedSocketTimeout`: (`number`) The socket timeout to use when the server is in
370
-
maintenance mode. The default is 10000 (10 seconds). If a timeout happens during the
371
-
maintenance period, the client receives a `SocketTimeoutDuringMaintenance` error.
372
-
-`maintMovingEndpointType`: (`MovingEndpointType`) Controls how the client requests the
373
-
endpoint to reconnect to. The options are:
374
-
-`internal-ip`: Enforce requesting the internal IP.
375
-
-`internal-fqdn`: Enforce requesting the internal FQDN.
376
-
-`external-ip`: Enforce requesting the external IP address.
377
-
-`external-fqdn`: Enforce requesting the external FQDN.
378
-
-`none`: Used to request a null endpoint, which tells the client to reconnect
379
-
based on its current config.
380
-
-`auto`: Let the client decide based on its current config. This is the default.
381
-
364
+
connection if it isn't supported. This is the default.
365
+
-`maintRelaxedCommandTimeout`: (`number`) The command timeout to use while the server is
366
+
performing maintenance. The default is 10000 (10 seconds). If a timeout happens during the maintenance period, the client receives a `CommandTimeoutDuringMaintenance` error.
367
+
-`maintRelaxedSocketTimeout`: (`number`) The socket timeout to use while the server is
368
+
performing maintenance. The default is 10000 (10 seconds). If a timeout happens during the maintenance period, the client receives a `SocketTimeoutDuringMaintenance` error.
@@ -292,6 +291,5 @@ The `MaintenanceEventsConfig` constructor accepts the following parameters:
292
291
| Name | Type | Default | Description |
293
292
|------|------|---------|-------------|
294
293
|`enabled`|`bool`|`False`| Whether or not to enable SCE. |
295
-
|`proactive_reconnect`|`bool`|`False`| Whether or not to automatically reconnect when a node is replaced. |
296
-
|`relax_timeout`|`int`|`20`| The number of seconds to wait before reconnecting after a node replacement. A value of `-1` disables the relax timeout. |
297
-
|`endpoint_type`|`EndpointType`|`None`| Override for the endpoint type to use in the `CLIENT MAINT_NOTIFICATIONS` command. If this is `None`, the endpoint type will be determined automatically based on the host and TLS configuration. |
294
+
|`proactive_reconnect`|`bool`|`True`| Whether or not to automatically reconnect when a node is replaced. |
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