This page describes self-service maintenance, which lets you accept a
maintenance update on your cluster outside of the typical flow of scheduled
maintenance. To see which vulnerabilities are addressed by each self-service
maintenance update, see [Memorystore for Redis Cluster maintenance changelogs](https://docs.cloud.google.com/memorystore/docs/cluster/maintenance-changelog.md.txt).

## Overview

Memorystore for Redis Cluster releases software improvements regularly, such as
patches for known vulnerabilities, through new maintenance versions.
Although Memorystore for Redis Cluster schedules maintenance updates once every few
months to ensure that you have the latest maintenance version, you might want to
use self-service maintenance if any of the following conditions apply:

- You need an update sooner than your next scheduled maintenance event.
- You want to stay up-to-date with CVE patches necessary for FedRAMP Compliance.

You're not required to update to the latest version manually. You can
let Memorystore for Redis Cluster update your maintenance version automatically during
your next scheduled maintenance event.

> [!NOTE]
> **Note:** You can update your cluster's maintenance version to a newer version only.

### Impact of self-service maintenance

Self-service maintenance updates have the same impact on your applications as
standard maintenance updates. For more information, see [About maintenance](https://docs.cloud.google.com/memorystore/docs/cluster/about-maintenance.md.txt).

## View maintenance versions

You can use either the Google Cloud console or the [gcloud CLI](https://docs.cloud.google.com/sdk/gcloud.md.txt)
to view the following information about maintenance versions that are
associated with your cluster:

- The current maintenance version.
- Available maintenance versions to which you can update your cluster.

### Console

1. In the Google Cloud console, go to the **Memorystore for Redis Cluster**
   page.

   [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters)
2. Click the cluster about which you want to view maintenance version
   information.

3. On the **Cluster at a glance** page, scroll until the **Maintenance** card
   appears.

   Next to the **Maintenance version** field, the current maintenance version
   appears. Also, if there are available maintenance versions to which you
   can [update the cluster](https://docs.cloud.google.com/memorystore/docs/cluster/self-service-maintenance.md.txt#update-cluster-maintenance-version), then the
   **Update available** status appears next to the
   **Self-service maintenance** field. If the **No updates are available**
   status appears, then the cluster has the latest version.

### gcloud

To view maintenance version information about your cluster, use the
[`gcloud redis clusters describe`](https://docs.cloud.google.com/sdk/gcloud/reference/redis/clusters/describe) command.

```
gcloud redis clusters describe CLUSTER_ID /
--region=REGION_NAME /
--project=PROJECT_NAME
```

Make the following replacements:

- <var translate="no">CLUSTER_ID</var>: the ID of the cluster
- <var translate="no">REGION_NAME</var>: the region name for the cluster
- <var translate="no">PROJECT_NAME</var>: the name of the Google Cloud project that contains the cluster

The current maintenance version appears next to the
`effectiveMaintenanceVersion` field. Also, the list of available maintenance
versions appears next to the `availableMaintenanceVersions` field. If no
versions appear, then your cluster has the latest version.

## Update your cluster to a new maintenance version

You can use either the Google Cloud console or the [gcloud CLI](https://docs.cloud.google.com/sdk/gcloud.md.txt)
to update your cluster to a newer maintenance version.

### Console

1. In the Google Cloud console, go to the **Memorystore for Redis Cluster**
   page.

   [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters)
2. Click the cluster for which you want to update the maintenance version.

3. On the **Cluster at a glance** page, scroll until the **Maintenance** card
   appears.

4. Next to the **Self-service maintenance** field, click **View and apply**.

   If the **No updates are available** status appears next to this field,
   then the cluster has the latest version.
5. In the **Self-service maintenance** dialog, do the following:

   1. From the **Choose maintenance version** menu, select the maintenance version to which you want to update the cluster.
   2. Click **Apply**.

### gcloud

To update the maintenance version for your cluster, use the [`gcloud redis clusters update`](https://docs.cloud.google.com/sdk/gcloud/reference/redis/clusters/update.md.txt) command.

```
gcloud redis clusters update CLUSTER_ID /
--region=REGION_NAME /
--project=PROJECT_NAME /
--maintenance-version=MAINTENANCE_VERSION
```

Make the following replacements:

- <var translate="no">CLUSTER_ID</var>: the ID of the cluster.
- <var translate="no">REGION_NAME</var>: the region name for the cluster.
- <var translate="no">PROJECT_NAME</var>: the name of the Google Cloud project that contains the cluster.
- <var translate="no">MAINTENANCE_VERSION</var>: the maintenance version to which you want to update the cluster. To find available maintenance versions, see [View maintenance versions](https://docs.cloud.google.com/memorystore/docs/cluster/self-service-maintenance.md.txt#view-maintenance-versions).