tencent cloud


Creating TencentDB for Redis Instance

Last updated: 2024-04-26 12:38:43


    This document describes how to purchase and configure a TencentDB for Redis instance.


    You have registered a Tencent Cloud account and completed identity verification.
    Click here to register a Tencent Cloud account
    Click here to complete identity verification.
    You have determined a region and AZ for the instance. For more information, see Regions and AZs.
    You have determined the specification and performance requirements of the instance. For more information, see Memory Edition (Standard Architecture) and Performance.
    You have determined a VPC and security group for the instance. For more information, see Virtual Private Cloud and Configuring Security Groups for TencentDB.
    To deploy the instance across multiple AZs in the same region, learn more about the architecture of multi-AZ deployment first.
    To support read/write separation, learn more about how it is implemented first.
    You have checked out the billing details of the instance. For more information, see Billing Overview. Database fees for one hour will be frozen when you create a pay-as-you-go database. Make sure that your account balance is sufficient before making a purchase.


    1. Log in to the TencentDB for Redis purchase page with your Tencent Cloud account.
    2. Configure the instance as needed based on the parameter descriptions below:
    Billing Mode
    Pay-as-you-go is supported. For more information, see Billing Overview.
    Select a region where your instance resides. You should select a region closest to you to reduce access latency.
    Note that the region cannot be changed after the instance is successfully created.
    We recommend that you select the same region as the CVM instance for private network communication.
    Tencent Cloud products in different regions cannot communicate with each other over the private network. For example, CVM instances in Guangzhou region cannot access TencentDB for Redis instances in Shanghai region over the private network. Select a region with caution, as it cannot be changed after purchase. If you need cross-region communication over the private network, see Creating Intra-account Peering Connection.
    Instance Edition
    Select Memory Edition, a high-performance edition based on the open-source Redis engine. The CKV Edition is unavailable currently.
    Compatible Version
    It is a high-performance edition based on open-source Redis and compatible with Redis 6.2, 5.0, 4.0, and 2.8.
    v2.8 is unavailable currently, and v4.0 or later is recommended. To purchase v2.8, submit a ticket.
    Select a product deployment architecture. For more information, see Memory Edition (Standard Architecture) and Memory Edition (Cluster Architecture).
    v4.0 or later supports the standard architecture and cluster architecture.
    v2.8 only supports the standard architecture.
    Memory Capacity
    Configure the required memory size (256 MB–64 GB) if you select Standard Architecture for Architecture.
    Replica Quantity
    Select the number of database replicas. Multiple replicas provide master-replica high availability, enhancing the data security. Replicas can also be used to enhance the read-only performance.
    The replica quantity may vary by region or edition as configured in the console by default.
    Shard Quantity
    Set the number of shards as needed if you select Cluster Architecture for Architecture. The more the shards, the larger the cluster storage capacity.
    Shard Capacity
    Set the capacity of each shard if you select Cluster Architecture for Architecture.
    Specs Preview
    Preview the selected specification and the supported maximum number of connections and maximum network throughput to verify whether they meet your expectations.
    Read-Only Replica
    Specify whether to enable read/write separation.
    After read/write separation is enabled, write operations are routed to the master node, and read operations are routed to the replica node. The data read from the replica node will be delayed after the master node.
    If you don't enable read/write separation upon purchase, you can also enable it later as needed. For more information, see Read/Write Separation.
    Currently, only VPC is supported.
    Choose whether to enable multi-AZ deployment. Both single-AZ deployment and multi-AZ deployment are supported. Multi-AZ deployed instances have higher availability and better disaster recovery capability than single-AZ deployed instances. For more information, see Multi-AZ Deployment.
    If the master node is deployed in a single AZ, specify an AZ for it.
    If the master node is deployed in multiple AZs, after selecting the master AZ, you need to specify an AZ for a replica in the drop-down list of replica x, where x is the replica number, such as replica 1 and replica 2.
    IPv4 Network
    Select the VPC and subnet. We recommend that you select the same VPC in the same region as the CVM instance to be connected to.
    VPCs are region-specific (e.g., Guangzhou), while subnets are AZ-specific (e.g., Guangzhou Zone 1). One VPC can be divided into one or multiple subnets, which are interconnected over the private network by default. Different VPCs are isolated over the private network by default, no matter whether they are in the same or different regions.
    You can switch the VPC after instance purchase as instructed in Configuring Network. You can also click Create VPCs and Create Subnets to create the desired network environment as instructed in Creating VPC.
    Customize the port number, which is 6379 by default and ranges from 1024 to 65535. You can modify it after the purchase.
    Parameter Template
    Select the parameter template associated with the instance.
    The system automatically matches the appropriate default template based on the selected compatible version and architecture to configure parameters for the instance in batches.
    If you want to create your own template, click Create Parameter Template.
    Assign the instance to a project in the drop-down list for easy management.
    The default project is Default Project.
    You can also click Create Project to enter the Project Management page and customize the project name to manage your Tencent Cloud resources.
    Add tags to your instance for easy classification and management. Click Add to select tag keys and values.
    Security Group
    Set security group rules to control the inbound traffic to your database.
    Set security group rules to control the inbound traffic to your database. You can either select a security group from the Existing Security Groups drop-down list or click Custom Security Groups to create one and set inbound rules. For more information, see Configuring Security Group.
    After selecting a security group from the drop-down list, click Preview Rules to learn about the protocol rules and policies of this security group.
    Alarm Policy
    Choose an alarm policy for the monitoring metrics.
    If you don't select an alarm policy, TencentDB for Redis provides a default alarm policy, allowing you to view the default policies on the alarm management page of Tencent Cloud Observability Platform.
    Select a custom alarm policy. Pre-log in to the alarm management page of Tencent Cloud Observability Platform to configure the alarm policy. For specific operations, see Creating Alarm Policy.
    Instance Name
    Supports Chinese, letters, and digits with a length less than 60, including hyphens (-) and underscores (_).
    Setting password
    Select the password authentication method, supporting the choice between Password Authentication and Passwordless Authentication. The default is password authentication.
    When Setting Password is selected as Password Authentication, you must set an access password for the instance. The password complexity requirements are:
    The character count must be [8,30].
    It must include at least two of the following: lowercase letters, uppercase letters, numbers, and special characters ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ .
    It cannot start with /.
    Confirming Password
    Enter the instance access password again.
    Purchase Quantity
    Pay-as-you-go purchases are limited to a maximum quantity of 30 per transaction, with a purchase quantity range of [1,100] for each region.
    Terms of Service
    Click Terms of Service to fully understand the use of Cloud Database Service content, service fees, usage rules, intellectual property, and other related service terms.
    Click Service Level Agreement to understand the agreement that must be complied with when using TencentDB for Redis.
    Check the box I have read and agree to the Terms of Service and Service Level Agreement.
    3. After verifying that the parameters are correctly configured, click Buy Now. After the purchase success message is displayed, click Go to Console. After the instance becomes Running in the status , you can use it normally.

    Related Operations

    Use a CVM instance to directly access the private network address of the TencentDB instance. For more information, see Connecting to TencentDB for MongoDB Instance.

    Related Operations

    Changing instance specification

    You can elastically adjust the specification of your TencentDB for Redis instance based on your actual business needs to optimize resource utilization and costs in real time. For detailed directions, see Changing Instance Specification.

    Assigning instance to project

    Assigned instances can be reassigned to other projects. For detailed directions, see Assigning Instances to Projects.

    Editing instance tag

    For instances with assigned tags, you can also edit tag keys and values again. For directions, see Editing Instance Tag.

    Renaming instance

    If the current instance name is not easy to identify and manage, you can reset it by clicking
    in the Instance ID/Name column in the Instance List.

    Resetting instance access password

    If you forgot or want to change the default account password, you can directly reset it. For detailed directions, see Resetting Password.

    Upgrading instance

    TencentDB for Redis instances can be upgraded from an earlier version to a later version, with cross-version upgrade supported. For detailed directions, see Upgrading Instance Version.
    TencentDB for Redis instances can be upgraded from Standard Architecture to Cluster Architecture. For detailed directions, see Upgrading Instance Architecture.

    Payment overdue

    After activating TencentDB for Redis, make sure that your account balance is sufficient. An insufficient balance may cause overdue payments or even instance repossession. For more information, see Payment Overdue.

    Related APIs

    API Name
    Creates a TencentDB for Redis instance
    Modifies the information of an instance
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support