Skip to main content

Key Concepts

MemStore is a managed cache database service that allows you to easily utilize Redis OSS without the need for separate installation processes. The key concepts of the MemStore service are as follows:

Key conceptDescription
Cache OnlyA cache service that stores all data in memory without using disk storage
ClusterA group of multiple shards, each consisting of one Primary node and multiple Replica nodes
- You can choose to enable or disable cluster mode based on your use case
ShardA unit that partitions the dataset within a cluster, composed of multiple nodes. Each node plays the role of either a Primary or Replica.
- Add shard: Add a shard when the selected cluster experiences increased load
- Delete shard: Remove unnecessary shards from the selected cluster
NodeA virtual machine (VM) with Redis OSS installed that serves as a Primary or Replica
- Node types: Select a suitable node type based on data size and load when creating a cluster
- Node lifecycle and status: Understand node conditions based on status
- Add node: Add a Replica node to reduce read load in a selected cluster
- Delete node: Remove unnecessary nodes from a selected cluster
High availabilityEnsures service continuity by automatically responding to node failures
- If a Primary node fails, the Replica with the most up-to-date data is automatically promoted to Primary (Automatic Failover), and a new Replica is created to maintain the desired Replica count (Auto Healing)
- If a Replica node fails, it is automatically replaced with a new node
PromotionWhen high availability is enabled:
- Promotion is automatic and cannot be requested manually
When high availability is disabled:
- Replica nodes can be manually promoted to Primary
Read/write-only endpoint provisionWhen cluster mode is disabled: Provides a Primary endpoint for read/write access and a read-only endpoint
When cluster mode is enabled: Does not provide a read-only endpoint; instead, each node provides an individual endpoint

Cache Only

Redis in MemStore is used as a cache only, storing all data in memory and not on disk.

Cluster

A cluster is a group of one or more nodes that are automatically managed. A cluster consists of multiple shards and nodes, with each node functioning as either a Primary or a Replica. Shards and Replica nodes can be added or deleted as needed.

Cluster lifecycle and status values

info

When using cluster mode, shard and node states are dependent on the cluster's state and share the same status.

Diagram Lifecycle diagram for cluster/shard/node in cluster mode

StatusDescription
InitInitial state before cluster creation begins
CreatingResources are being created
RunningCluster is running normally
ModifyingCluster configuration is being changed (e.g., adding/removing shards or nodes)
DeletingCluster is being deleted
FailedA permanent failure has occurred. Cluster cannot be recovered and can only be deleted.

Shard

A shard is a group of nodes in cluster mode that stores a partition of the overall dataset.
Clusters can have 1 to 12 shards. Each shard must have between 2 and 5 nodes when using cluster mode.

Node

A node is a VM that belongs to a cluster. When created or deleted, nodes automatically execute required operations and update their status. Each node is assigned a role of either Primary or Replica. When cluster mode is disabled, a maximum of 6 nodes can be added.

RoleDescription
PrimaryRead/write node used for client operations
ReplicaRead-only node used to offload traffic from the Primary

Node types

Choose a node type based on data volume and load. More specialized types may be supported in the future.

Node typevCPUMemory (GB)
m2a.large28
m2a.xlarge416
m2a.2xlarge832
m2a.4xlarge1664
m2a.8xlarge32128
m2a.12xlarge48192
m2a.16xlarge64256
m2a.24xlarge96384
r2a.large216
r2a.xlarge432
r2a.2xlarge864
r2a.4xlarge16128
r2a.8xlarge32256
r2a.12xlarge48384
r2a.16xlarge64512
r2a.24xlarge96768
t1i.small22
t1i.medium24
t1i.large28
t1i.xlarge416
t1i.2xlarge832
info

t1i instances may take several minutes to transition to Running after initial creation.
Also, if CPU credits are insufficient, workloads may not function properly.

Node lifecycle and status values

Diagram Node lifecycle diagram

StatusDescription
InitNode creation process starts
ProvisioningInfrastructure provisioning is in progress
StartingService installation and startup preparation
RunningNode is running and accessible
ModifyingSecurity group modification is in progress
TerminatingNode is being deleted upon request
TerminatedNode has been deleted and is no longer accessible
WarningTemporary issue occurred; will recover automatically
FailedA permanent failure occurred; node must be deleted

High availability

MemStore supports high availability (HA) for improved reliability and seamless service. When enabled, HA automatically recovers from node failures.

  • When using cluster mode: HA is always enabled and cannot be disabled.
  • When not using cluster mode: You can enable or disable HA at cluster creation or during operations.
  • HA-enabled clusters automatically include newly added nodes in the HA configuration.

Node failures

CaseDescription
Primary node failureThe most up-to-date Replica is automatically promoted to Primary (Automatic Failover), and a new Replica is created (Auto Healing).
Replica node failureThe failed Replica is automatically replaced to maintain Replica count.

Promote node

  • When using cluster mode or HA: Promotion is handled automatically and cannot be triggered manually.
  • When HA is disabled: You can manually promote a Replica to become the Primary if needed.

Read/write-only endpoint provision

When a cluster is created, it provides a read-only endpoint for client access.
This endpoint is accessible from the selected private subnet and comes with secure access control and firewall rules.

info

When using cluster mode, read-only endpoints are not provided. Use each node's endpoint instead.

Backup

You can back up a cluster and restore it when needed.
Currently, backup is supported only when cluster mode is disabled.

Backup status values

StatusDescription
AvailableBackup is complete and ready for restore, copy, or export
PendingBackup request has been accepted but not yet started
CreatingBackup is in progress or being copied from another backup
RestoringBackup is being used for provisioning
CopyingBackup is being copied to create another backup
ExportingBackup is being exported to the user’s Object Storage
ErrorAn error occurred during the backup process
DeletingBackup is being deleted

Parameter application status

StatusDescription
PendingWaiting to apply parameters
ApplyingParameters are being applied to the cluster
In-SyncParameters have been successfully applied
Error-SyncParameter application failed. You can retry, which will change the status to Applying.
SuspendedWaiting due to a failure in a previous sequential application. You can retry, which will change the status to Applying.