Simulate maintenance

This page describes maintenance simulation and explains how to run a simulated maintenance event on Memorystore for Redis Cluster. For more information about maintenance updates and maintenance windows, see About maintenance.

To ensure that your applications correctly handle a planned maintenance event, Memorystore for Redis Cluster offers a simulate maintenance event feature. This feature lets you simulate the maintenance process by performing planned failovers on all nodes within the instance. This process is similar to a regular maintenance operation. We strongly recommend that you use this feature in a test environment or during periods of low traffic. For an overview of the maintenance process, see Gradual deployment strategy and Create-before-destroy lifecycle strategy.

By observing your application's behavior during a simulated maintenance event, you can identify potential issues and verify that your application can handle maintenance correctly. For more information about best practices regarding client configurations, see Configure your client application.

Run maintenance simulation on a cluster

gcloud

To run a maintenance simulation on Memorystore for Redis Cluster, use the gcloud redis clusters update command:

gcloud redis clusters update CLUSTER_ID \
--region=REGION_ID \
--simulate-maintenance-event

Replace the following:

  • CLUSTER_ID: the ID of the cluster for which you want to run a simulated maintenance
  • REGION_ID: the region where your cluster is located