检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
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.
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.
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.
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.
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.
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.
To access a DCS Memcached instance, you must use an ECS that is in the same VPC as the DCS instance. In the application development and debugging phase, you can also use an SSH agent to access DCS Memcached instances in the local environment.
The online migration task uses a tenant IP address (Migration ECS displayed on the Basic Information page of the task.) If a whitelist is configured for the source or target instance, add the migration IP address to the whitelist or disable the whitelist.