Skip to main content

Manage shards and nodes

A node is a Virtual Machine (VM) included in a cluster, and a shard is a group of nodes that use the same cluster configuration. This guide explains how to manage shards and nodes within a MemStore cluster.

View shards and nodes

You can view the list and status of shards and nodes created in the cluster.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster for which you want to view details.
  3. Click the Shards tab to view the information.

Shards list tab

ItemInfoDescription
Menu buttonCopy all endpointsCopy all node endpoints in the cluster in newline format
Add shardAdd a shard to the cluster
Add nodeAdd a node to a shard
Delete shardDelete a shard from the cluster (not allowed if only one shard exists)
Shards listShard nameAutomatically assigned (Format: {cluster-name} + {nnn})
StatusShard status
- See Cluster lifecycle and status values
Node countNumber of nodes in the shard
SlotsSlot range assigned to the shard
UptimeTime since the shard was created
Created atTime the shard was created
Nodes listNode nameAutomatically assigned (Format: {cluster-name} + {nnn} + {nnn})
StatusNode status
- See Cluster lifecycle and status values
RoleRole assigned to the node
- See Node for role details
SubnetUser-selected subnet during cluster creation
AZAvailability zone where the node was created
EndpointEndpoint for cluster access
UptimeTime since the node was created
Created atTime the node was created

Manage shards and nodes (when using cluster mode)

Add shard

You can add a shard to a cluster.

info

Adding or deleting shards involves slot migration, which may take several hours to complete.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where you want to add a shard.
  3. Click the Shards tab, then click the Add Shard button.
  4. In the Add Shard popup, confirm the selected cluster and choose the subnet for the nodes, then click Add.
  5. In the Cluster menu, the cluster's status will change to Modifying, and once the shard is added, the status will change to Running.

Delete shard

You can delete a shard that is no longer needed. All nodes within the shard will also be deleted. Deleted resources cannot be recovered.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where you want to delete a shard.
  3. Click the Shards tab, select the shard checkbox, and click the Delete Shard button.
  4. In the Delete Shard popup, enter the shard name and click Delete.
  5. Confirm the deletion status from the Cluster menu.

Add node

You can add a node to a cluster. Nodes are added as replicas without causing service downtime.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where you want to add a node.
  3. Click the Shards tab, select the target shard, and click the Add Node button.
  4. In the Add Node popup, confirm the cluster and select the subnet to use, then click Add.
  5. Verify the addition in the Cluster menu.

Delete node

You can delete nodes that are no longer in use without service interruption. Primary nodes cannot be deleted, and nodes cannot be deleted if the shard only has two nodes.

caution

Deleted node resources are completely released and cannot be recovered.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where you want to delete a node.
  3. Click the Shards tab, click the [More] icon for the shard, and then click Delete Node.
  4. In the Delete Node popup, enter the node name and click Delete.
  5. Check the deletion status in the Cluster menu.

Manage shards and nodes (when not using cluster mode)

Add node

You can add a node to a cluster. Nodes are added as replicas without service downtime.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where you want to add a node.
  3. Click the Node list tab and then click the Add Node button.
  4. In the Add Node popup, confirm the selected cluster and click Add.
  5. In the Cluster menu, the cluster's status will change to ScalingOut. Confirm that the node is added.
  6. In the cluster detail page, wait until the newly added node status changes from Provisioning to Running in the Node list tab.
    • The role of the newly added node is set to Replica.
  7. When all nodes are successfully added, the cluster status will change to Running.

Promote node

If you need to change the Primary node of a running cluster, you can promote one of the Replica nodes. However, you cannot promote a node in a high availability configuration or in a single-node cluster.

Conditions where promotion is not allowedDescription
High availability enabled nodeWhen HA is enabled, automatic promotion occurs. Manual promotion is not supported.
Single-node clusterCannot promote because there is no Replica node. Add a Replica first to enable promotion.
info

Promotion is not supported when HA is enabled.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster where promotion is needed.
  3. Click the Node list tab, check the target Replica node, and click Promote.
  4. In the Promote popup, verify the node and click Promote.
  5. The cluster status will temporarily change from Running to SwitchingOver. While switching, node roles will remain unchanged.
  6. Once promotion completes, the cluster status will return to Running.
  7. In the Node list tab, verify that the promoted node's role has changed from Replica to Primary.
    • Only one Primary node is allowed, so the previous Primary will be demoted to Replica.

Delete node

You can delete unused nodes without service interruption. Primary nodes can only be deleted when in Failed status. To delete an active Primary, demote it to Replica first.

caution

Deleted node resources are permanently released and cannot be recovered.

  1. Go to the KakaoCloud Console > Data Store > MemStore menu.
  2. Select the cluster containing the node to delete.
  3. Click the Node list tab, check the node, and click Delete Node.
  4. In the Delete Node popup, enter the node name and click Delete.
  5. During deletion, the cluster status changes to ScalingIn, and the node status changes to Terminating.
  6. Once complete, the cluster status returns to Running, and the deleted node is no longer visible.