Help Center> Distributed Cache Service> User Guide> Buying a DCS Instance> Buying a DCS Memcached Instance (Unavailable Soon)

Buying a DCS Memcached Instance (Unavailable Soon)

You can buy one or more DCS Memcached instances with the required computing capabilities and storage space based on service requirements.

DCS for Memcached 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 Memcached Instance

  1. Log in to the DCS console.
  2. 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.

  3. In the navigation pane, choose Cache Manager.
  4. Click Buy DCS Instance.
  5. Specify Billing Mode.
  6. Select a region closest to your application to reduce latency and accelerate access.
  7. Specify the following instance parameters based on the information collected in Identifying Requirements.

    1. Set Cache Engine to Memcached.
    2. Set Instance Type to either Single-node or Master/Standby.

    3. Select an AZ.

      To accelerate access, deploy your instance and your application in the same AZ. To ensure data reliability, deploy them in different AZs.

      If the instance type is master/standby, Standby AZ is displayed. Select a standby AZ for the standby node of the instance.

    4. Specify Instance Specification.

      The quota displayed on the console prevails.

      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.

      Figure 1 Buying a DCS Memcached Instance

  8. Configure the instance network parameters.

    1. For VPC, select a VPC, subnet, and specify the IP address.

      You can choose to obtain an automatically assigned IP address or manually specify an IP address that is available in the selected subnet.

    2. 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.

      If port 11211 is not enabled for the selected security group, the Enable port 11211 check box is displayed and selected by default, indicating that after the instance is created, port 11211 will be enabled for the selected security group. If port 11211 is not enabled for the selected security group, connections to the instance may fail.

      Figure 2 Configuring instance network parameters

  9. Set the instance password.

    • Select Yes or No for Password Protected.
      • Password-free access carries security risks. Exercise caution when selecting this mode.
      • After creating a DCS Memcached instance in password-protected mode, you can reset the password or change it into password-free mode. For details, see Changing Password Settings for DCS Memcached Instances.
      • If password-free access is disabled, DCS Memcached instances must be accessed using the Memcached binary protocol and through SASL authentication.
    • Username required for accessing the new DCS instance. The username must meet the following requirements.

      This parameter is displayed only when Password Protected is set to Yes.

    • Password and Confirm Password: These parameters indicate the password of accessing the DCS Memcached 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 Memcached instance. Keep your instance password secure and change it periodically.

  10. Specify the required duration and quantity.
  11. Click More Settings to display more configurations, including backup policy and instance tags.

    1. 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.

    2. Specify Enterprise Project.
    3. Specify backup and restoration policies.

      This parameter is displayed only when the instance type is master/standby. For more information on how to configure a backup policy, see Backing Up and Restoring Instances.

    4. Specify the maintenance time window.

      Choose a window for DCS O&M personnel to perform maintenance on your instance. Time windows 22:00–02:00, 02:00–06:00, 06:00–10:00, 10:00–14:00, 14:00–18:00, and 18:00–22:00 are available for selection.

    5. 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 or create predefined 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.

  12. Click Next.

    The displayed page shows the instance information you have specified.

  13. Confirm the instance information and click Submit.
  14. After the new DCS instance has been created, return to the Cache Manager page to view and manage your DCS instances.

    1. It takes 5 to 15 minutes to create a DCS instance.
    2. After a DCS instance has been successfully created, it enters the Running state by default.