Deleting a read replica for Valkey or Redis OSS (Cluster Mode Disabled)
Information in the following topic applies to Valkey or Redis OSS (cluster mode disabled) replication groups only.
As read traffic on your Valkey or Redis OSS replication group changes, you might want to add or remove read replicas. Removing a node from a replication group is the same as just deleting a cluster, though there are restrictions:
-
You cannot remove the primary from a replication group. If you want to delete the primary, do the following:
-
Promote a read replica to primary. For more information on promoting a read replica to primary, see Promoting a read replica to primary, for Valkey or Redis OSS (cluster mode disabled) replication groups.
-
Delete the old primary. For a restriction on this method, see the next point.
-
-
If Multi-AZ is enabled on a replication group, you can't remove the last read replica from the replication group. In this case, do the following:
-
Modify the replication group by disabling Multi-AZ. For more information, see Modifying a replication group.
-
Delete the read replica.
-
You can remove a read replica from a Valkey or Redis OSS (cluster mode disabled) replication group using the ElastiCache console, the AWS CLI for ElastiCache, or the ElastiCache API.
For directions on deleting a cluster from a Valkey or Redis OSS replication group, see the following: