Add a host

更新时间:
复制 MD 格式

After you create an ApsaraDB for MyBase dedicated cluster, you must add hosts to the cluster. You can then create instances on the hosts to use ApsaraDB for MyBase.

Prerequisites

Create a dedicated cluster

Host quantity requirements

Database engine Edition Minimum hosts
MySQL master-replica edition 1
high-availability edition 2
SQL Server basic edition 1
high-availability edition 2
cluster edition 2
Redis Enterprise Edition (Performance-enhanced, master-replica architecture) 2
Community Edition (cluster architecture) 3
Community Edition (master-replica architecture) 2

Procedure

  1. Log on to the ApsaraDB for MyBase console.
  2. In the upper-left corner of the page, select a region.
  3. In the left-side navigation pane, click Host List, and then click Add Host.
  4. On the purchase page, set the following parameters.
    Parameter Description
    Product type Select ApsaraDB for MyBase Managed Edition (Subscription).
    Note
    • If you purchase a host that uses local SSDs, the host fee includes all fees for the instances on the host.
    • If you purchase a host that uses cloud disks (ESSDs), the host fee includes only compute costs. You are charged for storage when you create an instance. A Storage Package is a subscription-based resource plan that can offset pay-as-you-go storage bills in the same region. We recommend that you purchase a Storage Package to reduce storage costs.
    Region The region where the host is located.
    Zone The zone where the host is located. We recommend that you distribute hosts across different zones to improve availability.
    Cluster type The value is Managed Cluster by default.
    Database type Select a database type. Valid values:
    • MySQL
    • Microsoft SQL Server
    • Redis
    Dedicated cluster Select the dedicated cluster to which the host belongs.
    • If you have not created a cluster for the selected database engine in the current region, the system selects Dedicated Cluster Created by Default and automatically creates a cluster for the host.
    • If you have already created one or more clusters for the selected database engine in the current region, you can select a target cluster as needed.
    Note To create a dedicated cluster, click Create in Console. For more information, see Create a dedicated cluster.
    VPC The VPC of the dedicated cluster to which the host belongs.
    • If you select an existing dedicated cluster, you can select the VPC to which the cluster belongs.
    • If the dedicated cluster is set to Dedicated Cluster Created by Default:
      • If one or more VPCs exist in the region, you can select a VPC as needed.
      • If no VPCs exist in the region, the system selects VPC Created by Default and automatically creates a VPC for the cluster.
    Note If you need to create a new VPC or vSwitch, click Create in Console to the right of the vSwitch parameter. For more information about how to create a VPC or vSwitch, see Create a VPC with an IPv4 CIDR block.
    vSwitch The vSwitch to which the host belongs.
    • If the specified VPC has an existing vSwitch in the current zone, you can select the vSwitch.
    • If the specified VPC does not have a vSwitch in the current zone, you can log on to the vSwitch console to create a vSwitch. Make sure that the vSwitch is in the same region and zone as the VPC. For more information, see Create a VPC with an IPv4 CIDR block.
    • If you select the default options for the dedicated cluster and the VPC, and also select vSwitch Created by Default, the system automatically creates a vSwitch.
    Note If you need to create a new VPC or vSwitch, click Create in Console to the right of the vSwitch parameter. For more information about how to create a VPC or vSwitch, see Create a VPC with an IPv4 CIDR block.
    Security group authorization If you are adding a host for the first time, click Authorize Now. On the Cloud Resource Access Authorization page that appears, click Confirm Authorization Policy to grant security group permissions.
    Important After you grant the permissions, the AliyunRDSDedicatedHostGroupRole role appears on the Roles page of the Resource Access Management (RAM) console. Do not delete this role when you use ApsaraDB for MyBase. If you delete this role, you must grant the permissions again to use the features of ApsaraDB for MyBase.
    Host image The operating system image of the host. Valid values:
    • If the database engine is MySQL or Redis, the host image is AliLinux by default.
    • If the database engine is Microsoft SQL Server, select one of the following values:
      • Windows (With SQL Server EE AlwaysOn License)
      • Windows (With SQL Server SE License)
      • Windows (With SQL Server EE License)
      • Windows (With SQL Server Web Edition License)
    Storage type The storage type of the host. Valid values:
    • For the MySQL database engine, the valid values are local SSD and Enhanced SSD (ESSD).
    • For the Microsoft SQL Server and Redis database engines, the storage type is Enhanced SSD (ESSD) by default.
    Host instance type Select a host instance type. You can filter the instance types by the number of vCores, memory size, and instance family.
    Note For more information about host instance types, see Host instance type details.
    Storage capacity The storage capacity of the host. This parameter applies to ApsaraDB for MyBase for MySQL instances that use local SSDs and for ApsaraDB for MyBase for Redis instances.
    Note The storage capacity varies based on the host instance type that you select.
    Quantity The number of hosts to add. For more information, see Host quantity requirements.
    Duration The subscription duration of the host. You can select auto-renewal to prevent the host from being released when its subscription expires. The system renews the subscription based on the specified duration. For example, if you select a 3-month duration, the subscription is automatically renewed every 3 months.
  5. Click Buy Now, review and confirm the host information, accept the terms of service, and then complete the payment.

Related documents

API reference

API Description
CreateDedicatedHost Creates a host.

What to do next

After you create a host, you must create an instance on it. For more information, see the following topics: