Learn how to avoid disruptions during Redis server maintenance.
Smart client handoffs (SCH) is a feature of Redis Cloud and Redis Enterprise servers that lets them actively notify clients about planned server maintenance shortly before it happens. This lets a client reconnect or otherwise respond gracefully without significant interruptions in service.
SCH is primarily useful when server software or hardware upgrades are required. It provides two main features to help the client avoid disruptions in service during the maintenance period:
SCH is enabled by default on Redis Cloud, but you must enable it
explicitly on Redis Enterprise servers by using the
v1/cluster
REST API request to set the client_maint_notifications option to true.
The example below shows how to do this using the
curl command line utility:
curl -k -X PUT -H "accept: application/json" \
-H "content-type: application/json" \
-u "[email protected]:test123" \
-d '{ "client_maint_notifications": true }' \
https://localhost:9443/v1/cluster
SCH is enabled automatically on the client side during connection if you select the RESP3 protocol, which is a requirement for SCH. However, you can configure some parameters, such as the timeouts to use during maintenance. See the pages linked below to learn how to configure SCH for: