[フレーム]
Docs Pricing
Login Book a meeting Try Redis

Migrate database shards

How to migrate database shards to other nodes in a Redis Software cluster.

Redis Enterprise Software

To migrate database shards to other nodes in the cluster, you can use the rladmin migrate command or REST API requests.

Use cases for shard migration

Migrate database shards to a different node in the following scenarios:

Considerations for shard migration

For databases with replication:

For databases without replication, the migrated shard will not be available until the migration is done.

Connected clients shouldn't be disconnected in either case.

If too many primary shards are placed on the same node, it can impact database performance.

Migrate specific shard

To migrate a specific database shard, use one of the following methods:

Migrate multiple shards

To migrate multiple database shards, use one of the following methods:

Migrate all shards from a node

To migrate all shards from a specific node to another node, run rladmin migrate all_shards:

rladmin migrate node <origin_node_id> all_shards target_node <node_id>

Migrate primary shards

You can use the rladmin migrate all_master_shards command to migrate all primary shards for a specific database or node to another node in the cluster.

To migrate a specific database's primary shards:

rladmin migrate db db:<id> all_master_shards target_node <node_id>

To migrate all primary shards from a specific node:

rladmin migrate node <origin_node_id> all_master_shards target_node <node_id>

Migrate replica shards

You can use the rladmin migrate all_slave_shards command to migrate all replica shards for a specific database or node to another node in the cluster.

To migrate a specific database's replica shards:

rladmin migrate db db:<id> all_slave_shards target_node <node_id>

To migrate all replica shards from a specific node:

rladmin migrate node <origin_node_id> all_slave_shards target_node <node_id>
RATE THIS PAGE
Back to top ↑

On this page

AltStyle によって変換されたページ (->オリジナル) /