Configure a Memorystore for Redis Cluster

Memorystore for Redis Cluster is a fully managed Redis service for Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments.

Memorystore for Redis Cluster distributes (or "shards") your data across primary nodes and replicates your data across optional replica nodes to ensure high availability. The horizontally scalable cluster architecture provides better performance over vertically scalable architecture because Redis performance is better on many smaller nodes instead of fewer larger nodes. For more information, see Memorystore for Redis Cluster overview.

This document describes the connection and parameters you can configure when using App Design Center to create a Memorystore for Redis Cluster. The configuration parameters are based on the terraform-google-memorystore Terraform module.

Component connections

The following table includes the components that you can connect to a Memorystore for Redis Cluster, and the resulting updates to your application and its generated Terraform code.

Connected component

Application updates

Background information

Cloud Run

  • The Cloud Run service can cache data in the Memorystore for Redis Cluster.
  • The Memorystore for Redis Cluster connection information is added to the Cloud Run environment variables.
  • The roles/redis.editor role is added to the Cloud Run service account.
Connect to a Memorystore for Redis Cluster

Required configuration parameters

If your template includes a Memorystore for Redis Cluster component, you must configure the following parameters before you deploy.

Parameter name

Description and constraints

Background information

Name

name Create instances

Project ID

The project where you want to deploy the Memorystore for Redis Cluster resource.

Configure components

Region

locationId Supported regions

Network

network Networking setup guidance

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.

Feature

Parameter name

Description and constraint information

Background information

Shard Count

shardCount Shards

Replica Count

replicaCount Primary and replica nodes

Transit Encryption Mode

transitEncryptionMode About in-transit encryption

Authorization Mode

authorizationMode Access control with IAM

Node Type

nodeType Cluster and node specification

Zone Distribution Config Mode

mode Single-zone instances

Maintenance Window

Day

day About maintenance on Memorystore for Redis Cluster

Hours

hours About maintenance on Memorystore for Redis Cluster

Minutes

minutes About maintenance on Memorystore for Redis Cluster

Seconds

seconds About maintenance on Memorystore for Redis Cluster

Nanos

nanos About maintenance on Memorystore for Redis Cluster

Persistence Config

Persistence Mode

persistenceMode Persistence overview

RDB Snapshot Period

rdbSnapshotPeriod About RDB snapshots

RDB Snapshot Start Time

rdbSnapshotStartTime About RDB snapshots

AOF Config

AofConfig About AOF snapshots

Enable APIs

By default, enables the redis.googleapis.com API.

Google Cloud Memorystore for Redis Cluster API

Service Connection Policy

ServiceConnectionPolicy Create a service connection policy

Redis Config

Max Memory Clients

redisConfigs Modifiable configuration parameters

Max Memory

redisConfigs Modifiable configuration parameters

Max Memory Policy

redisConfigs Modifiable configuration parameters

Notify Key Space Events

redisConfigs Modifiable configuration parameters

Slow Log - Log Slower Than

redisConfigs Modifiable configuration parameters

Max Clients

redisConfigs Modifiable configuration parameters

Zone Distribution Config Zone

zone Single-zone instances

Deletion Protection Enabled

By default, enables the cluster deletion protection.

Prevent deletion of a cluster

KMS Key

customerManagedKey Use customer-managed encryption keys (CMEK)

Labels

Key

label

Create and manage tags

Value

label

Create and manage tags