Deploy a standalone etcd instance

更新时间:
复制 MD 格式

You can use Resource Orchestration Service (ROS) to deploy a standalone etcd instance by creating a stack.

Background

etcd is a distributed key-value store for storing critical data. It provides reliable distributed coordination through distributed locks, leader election, and write barriers.

The Installs etcd on an ECS instance (existing VPC) template deploys the etcd application on an ECS instance running CentOS 7, using your existing resources, including a Virtual Private Cloud (VPC), vSwitch, and security group.

After the stack is created, go to the Resources tab, click the instance ID, and then click Connect to log on to the ECS instance. For more information on remote connections, see Log on to a Linux instance by using Workbench.

Step 1: Create a stack

  1. Log on to the ROS console.

  2. In the left-side navigation pane, choose Templates > Public Templates.

  3. Find the Installs etcd on an ECS instance (existing VPC) template.

  4. Click Create Stack.

  5. On the Configure Parameters page, enter a Stack Name and configure the following parameters.

    Parameter

    Description

    Example

    VSwitch Availability Zone

    The ID of the availability zone where the vSwitch resides.

    China (Qingdao) Zone C

    Existing VPC Instance ID

    The ID of the VPC.

    For information about how to create and find a VPC, see Create and manage a Virtual Private Cloud.

    vpc-bp1m6fww66xbntjyc****

    Existing VSwitch ID

    The ID of the vSwitch.

    For information about how to create and find a vSwitch, see Create and manage vSwitches.

    vsw-bp183p93qs667muql****

    Business Security Group ID

    The ID of the security group for the ECS instance.

    For information about how to find a security group ID, see View security groups.

    sg-bp15ed6xe1yxeycg7o****

    Instance Type

    The ECS instance type.

    Select a valid instance type. For more information, see Instance families.

    ecs.c5.large

    System Disk Type

    The category of the system disk. Valid values:

    • cloud_efficiency: Ultra Disk.

    • cloud_ssd: Standard SSD.

    • cloud_essd: Enterprise SSD (ESSD).

    • cloud: Basic Disk.

    • ephemeral_ssd: local SSD.

    For more information, see Disk categories.

    cloud_efficiency

    System Disk Size

    The size of the system disk, in GB.

    The value must be between 20 and 500.

    40

    Instance Password

    The password for the ECS instance.

    Test_12****

  6. Click Next:Check and Confirm. Then, Click Create.

  7. On the Stack Information tab, check the status of the stack. After the stack is created, click the Output tab to find the EtcdServerConnectionAddress.

    Note

    You need the EtcdServerConnectionAddress to manage the service with etcdctl commands. Record this address for future reference.

  8. Click the Resources tab, click the resource ID of the etcd instance, and then click Connect to log on to the ECS instance.

    After you log on to the ECS instance, you can use etcdctl commands to manage the service. For more information about etcdctl commands, see the etcdctl command documentation.

Step 2: View the resources

  1. In the left-side navigation pane, choose Resource stack.

  2. On the Stacks page, click the ID of the target stack.

  3. The following table describes the resources created in this example.

    Resource

    Quantity

    Description

    Specifications

    ALIYUN::ECS::Instance

    1

    Creates one ECS instance to host the standalone etcd deployment.

    • Total quantity: 1

    • Instance type: ecs.c5.large

    • Disk category: Ultra Disk

    • System disk size: 40 GB

    • Public IP address assigned: Yes

    Note For pricing information on these resources, see the pricing page for each respective product.