检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Buy an ECS, log in to it, and install the Redis client by referring to redis-cli. Use redis-cli to access the load balancer using its EIP and port number (which is 80). Write a key through ELB. Log in to the DCS console.
Check whether the following resources are sufficient: available ECS space, target instance flavor, and remaining memory (≥ source Redis data).
Test Environment Redis instance specifications Redis 6.0 | Basic edition | 32 GB | Redis Cluster ECS flavors General compute-plus | 8 vCPUs | 16 GiB | c7.2xlarge.2 ECS image Ubuntu 18.04 server 64-bit Test tool Three ECSs are used for concurrent tests.
To access the instance in an Elastic Cloud Server (ECS), select the VPC where the ECS is. The VPC and subnet are fixed once the DCS instance is created. A shared VPC implements network resource sharing, and unified and efficient management and control at low O&M costs.
To upload it to an ECS, see File Upload/Data Transfer. Add the path of the ca.crt file to the command for connecting to the instance. For example, to access an instance on redis-cli, see Connecting to Redis on redis-cli.
Test Data of Proxy Cluster DCS Redis 3.0 Instances Test Environment Redis instance specifications Redis 3.0 | 64 GB | Proxy Cluster ECS flavors General computing-plus | c6.xlarge.2 | 4 vCPUs | 8 GB Test Command redis-benchmark -h {IP} -p {Port} -a {password} -n {nreqs} -r {randomkeys
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), and Object Storage Service (OBS), are shared within the same region. AZs in the same region can communicate with each other over an intranet, but AZs in different regions cannot.
An ECS has been created for running redis-shake. The ECS must use the same VPC, subnet, and security group as the Redis instance. Procedure Access the target Redis instance using redis-cli.
You can also create an ECS in the VPC housing the instances and connect the ECS and instances through a floating IP address. Subnets and security groups can be used together to isolate DCS instances and enhance security.
Test Data of Master/Standby DCS Redis 3.0 Instances Test Environment Redis instance specifications Redis 3.0 | 8 GB | master/standby Redis 3.0 | 32 GB | master/standby ECS flavors General computing-enhanced | c6.xlarge.2 | 4 vCPUs | 8 GB Test Command redis-benchmark -h {IP} -p {Port
Test Data of Redis Cluster DCS Redis 4.0 or 5.0 Instances Test Environment Redis instance specifications Redis 4.0 or 5.0 | 32 GB | Redis Cluster ECS flavors General computing-enhanced | c6.xlarge.2 | 4 vCPUs | 8 GB Test tool Three ECSs are used for concurrent tests.
Check whether the redis-benchmark executable file exists. ls Install the tool in the system. make install Method 2: Install the Redis server matching the ECS OS. The following examples use Ubuntu and CentOS.
Example Requests Creating an online migration task and configuring the VPC, subnet, and security group for the migration ECS POST https://{dcs_endpoint}/v2/{project_id}/migration/instance { "name" : "dcs-migration-thrc", "description" : "Creating an online data migration task
Test Data of Proxy Cluster DCS Redis 4.0 or 5.0 Instances Test Environment Redis instance specifications Redis 4.0 or 5.0 | 64 GB | 8 shards | Proxy Cluster ECS flavors General computing-enhanced | c6.xlarge.2 | 4 vCPUs | 8 GB Test tool Three ECSs are used for concurrent tests.
Only one ECS is required for testing on a single-node or master/standby instance. Install memtier_benchmark on each ECS. CentOS 8.0 is used as an example.
Proxy Cluster (2 replicas | 8 shards | 8 GB per shard) Redis 5.0 | 256 GB | Proxy Cluster (2 replicas | 32 shards | 8 GB per shard) Redis 5.0 | 64 GB | Redis Cluster (2 replicas | 8 shards | 8 GB per shard) Redis 5.0 | 256 GB | Redis Cluster (2 replicas | 32 shards | 8 GB per shard) ECS
When creating a node pool, set Node Type to Elastic Cloud Server (VM), Container Engine to Docker, OS to CentOS 7.6, and bind an existing EIP or create one. Procedure Creating a Client Image Download a Redis client. Log in to the CCE cluster node.
MIGRATION_FAILED, or RELEASED. migration_type String Migration mode, which can be backup file import or online migration. migration_method String Type of the migration, which can be full migration or incremental migration. ecs_tenant_private_ip String Private IP address of the migration ECS
MIGRATION_FAILED, or RELEASED. migration_type String Migration mode, which can be backup file import or online migration. migration_method String Type of the migration, which can be full migration or incremental migration. ecs_tenant_private_ip String Private IP address of the migration ECS
Value range: full_amount_migration: full migration incremental_migration: incremental migration ecs_tenant_private_ip String Parameter description: Private IP address of the migration ECS on the tenant side.