Buying a DCS Redis Instance
You can buy one or more DCS Redis instances with the required computing capabilities and storage space based on service requirements.
DCS for Redis 3.0 is about to become unavailable and is no longer sold in some regions. You can use DCS for Redis 4.0 or 5.0 instead.
Prerequisites
To achieve fine-grained management of your HUAWEI CLOUD resources, create IAM user groups and users and grant specified permissions to the users. For details, see Permissions Management.
Buying a DCS Redis Instance
- Log in to the DCS console.
- Click
in the upper left corner of the management console and select a region and a project.
Select the same region as your application service.
- Click Buy DCS Instance.
- Specify Billing Mode.
- Select a region closest to your application to reduce latency and accelerate access.
- Specify the following instance parameters based on the information collected in Identifying Requirements.
- Cache Engine:
Select Redis.
- Version:
Currently supported versions: Redis 3.0, 4.0, and 5.0, and Redis 6.0 professional edition.
- Set Instance Type to Single-node, Master/Standby, Proxy Cluster, Redis Cluster, or Read/Write splitting.
- Set CPU Architecture to x86 or Arm.
- Set Replicas. The default value is 2.
This parameter is displayed only when you select Redis 4.0 or Redis 5.0 and the instance type is master/standby or Redis Cluster.
- If Redis Cluster is selected, the Sharding parameter is displayed.
Use default: Use the default sharding specifications.
Customize: Customize the size of each shard and then select corresponding instance specifications.
- Select an AZ.
To accelerate access, deploy your instance and your application in the same AZ.
If the instance type is master/standby, Proxy Cluster, or Redis Cluster, Standby AZ is displayed. Select a standby AZ for the standby node of the instance.
- Instance Specification:
The remaining quota is displayed on the console.
To increase quota, click Increase quota below the specifications. On the displayed page, fill in a quota application form and click Submit.
Figure 1 shows the instance parameter settings.
- Cache Engine:
- Configure the instance network parameters.
- Select a VPC and a subnet.
- Configure the IP address.
All Redis versions support automatically-assigned IP address and manually-specified IP addresses. You can manually specify a private IP address for your instance as required.
For Redis 4.0 or 5.0, you can specify a port numbering in the range from 1 to 65535. If no port is specified, the default port 6379 will be used.
For Redis 6.0 enterprise edition, you can specify a port numbering in the range from 1 to 65535. If no port is specified, the default port 6379 will be used.
For Redis 3.0, you cannot customize a port. The default port 6379 will be used.
- Select a security group.
A security group is a set of rules that control access to ECSs. It provides access policies for mutually trusted ECSs with the same security protection requirements in the same VPC.
DCS for Redis 4.0 and 5.0 are based on VPC endpoints and do not require security groups.
Redis 6.0 professional edition is also based on VPC endpoints and does not require security groups.
If port 6379 is not enabled for the selected security group, the Enable port 6379 check box is displayed and selected by default, indicating that after the instance is created, port 6379 will be enabled for the selected security group. If port 6379 is not enabled for the selected security group, connections to the instance may fail.
Figure 2 Configuring instance network parameters
- Set the instance password.
- Select Yes or No for Password Protected.
- Password-free access carries security risks. Exercise caution when selecting this mode.
- If you are to enable public access, you must select the password-protected mode and set a password.
- After creating a DCS Redis instance to be accessed in password-free mode, you can set a password for it by using the password reset function. For details, see Changing Password Settings for DCS Redis Instances.
- Password and Confirm Password: These parameters indicate the password of accessing the DCS Redis instance, and are displayed only when Password Protected is set to Yes.
For security purposes, if password-free access is disabled, the system prompts you to enter an instance-specific password when you are accessing the DCS Redis instance. Keep your instance password secure and change it periodically.
- Select Yes or No for Password Protected.
- Specify the required duration and quantity.
After enabling public access, you can only create one DCS Redis instance at time.
- Click More Settings to display more configurations, including public access, backup policy, and critical command renaming.
- Specify Name and Description.
When you create only one instance at a time, the value of Name must be a string consisting of 4 to 64 characters. When you create more than one instance at a time, the value of Name must be a string consisting of 4 to 56 characters. These instances are named in the format of "name-n", in which n starts from 000 and is incremented by 1. For example, if you create two instances and set Name to dcs_demo, the two instances are respectively named as dcs_demo-000 and dcs_demo-001.
- Configure public access.
You can enable or disable public access. Currently, only DCS Redis 3.0 instances support public access.
- A DCS Redis instance with public access enabled is accessed using an EIP. After you enable public access, Elastic IP Address and SSL are displayed. Select an EIP or click View Elastic IP to view or create EIPs.
- SSL: An indicator of whether to enable SSL encryption during public access to your DCS Redis instance.
When public access is enabled, SSL is enabled by default. This parameter cannot be modified once the instance is created with public access enabled.
If you want to change the SSL setting after the instance is created, disable public access first to change the SSL setting.
- Specify Enterprise Project.
- Specify backup and restoration policies.
This parameter is displayed only when the instance type is master/standby or cluster. For more information on how to configure a backup policy, see Backing Up and Restoring Instances.
- Rename critical commands.
If Redis 4.0 or 5.0, or Redis 6.0 professional edition is selected, the Command Renaming parameter is displayed. Currently, you can only rename the COMMAND, KEYS, FLUSHDB, FLUSHALL, and HGETALL commands.
- Specify the maintenance window.
Choose a window for DCS O&M personnel to perform maintenance on your instance. You will be contacted before any maintenance activities are performed.
- Add a tag.
Tags are used to identify cloud resources. When you have many cloud resources of the same type, you can use tags to classify cloud resources by dimension (for example, by usage, owner, or environment).
- If you have created predefined tags, select a predefined pair of tag key and value. Click View predefined tags. On the Tag Management Service (TMS) console, view predefined tags or create new tags.
- You can also create new tags by specifying Tag key and Tag value.
Up to 10 tags can be added to each DCS instance. For details about the requirements on tags, see Managing Tags.
- Specify Name and Description.
- Click Next.
The displayed page shows the instance information you have specified.
- Confirm the instance information and click Submit.
- Return to the Cache Manager page to view and manage your DCS instances.
Video Guide
Watch the following video about creating a DCS Redis instance on the DCS console.
Last Article: Preparing Required Resources
Next Article: Buying a DCS Memcached Instance (Unavailable Soon)

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.