All Products
Search
Document Center

ApsaraDB for MyBase:Create a host in an ApsaraDB MyBase for MySQL dedicated cluster

Last Updated:Oct 13, 2023

Before you use the features of ApsaraDB for MyBase, you must create a host in your dedicated cluster and create an instance on the host.

Prerequisites

An ApsaraDB MyBase for MySQL dedicated cluster is created in the region where you want to create a host. For information about how to create an ApsaraDB MyBase for MySQL dedicated cluster, see Create an ApsaraDB MyBase for MySQL dedicated cluster.

Background information

For information about the host specifications and prices of ApsaraDB MyBase for MySQL, see Host specifications and prices of ApsaraDB MyBase for MySQL and ApsaraDB MyBase for PostgreSQL.

Number of hosts that are required to deploy an ApsaraDB MyBase for MySQL instance

Version

Edition

Description

MySQL 5.6

High-availability Edition

  • If you want to create an ApsaraDB MyBase for MySQL High Availability Edition instance in an dedicated cluster, the following requirements must be met:

    • When you create the instance, the instance edition must be set to High-availability Edition.

    • The dedicated cluster must contain at least two hosts that use the same storage type. The hosts are used to deploy the primary and secondary instances.

  • If you want to create an ApsaraDB MyBase for MySQL Master-replica Edition instance in a dedicated cluster, the following requirements must be met:

    • When you create the instance, the version of the database engine must be set to 5.7 or 8.0, and the instance edition must be set to Master-replica Edition.

    • You can create one host or multiple hosts across zones in the dedicated cluster. The hosts are used to deploy the primary instance and the associated read-only instances.

MySQL 5.7

  • High-availability Edition

  • Master-replica Edition

MySQL 8.0

  • High-availability Edition

  • Master-replica Edition

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 Hosts. On the page that appears, click Add Host.

  4. Configure the parameters that are described in the following table.

    Parameter

    Description

    Region

    The region where you want to create the host. By default, the region that you selected in Step 2 is used.

    Zone

    The zone where you want to create the host. We recommend that you create hosts in different zones to improve availability.

    Database Engine

    The database engine that is supported by the host. Select MySQL.

    Dedicated Cluster

    The dedicated cluster in which you want to create the host.

    • If no dedicated clusters that run the specified database engine exist in the specified region, this parameter is automatically set to Dedicated Cluster Created by Default. This way, the system creates a dedicated cluster for your host.

    • If one or more dedicated clusters that run the specified database engine exist in the specified region, you can select one of them based on your business requirements.

    Note

    If you want to create a dedicated cluster, you can click go to the ApsaraDB for MyBase console. For more information about how to create a dedicated cluster, see Create a dedicated cluster.

    VPC

    The virtual private cloud (VPC) where you want to create the host.

    • If an existing dedicated cluster is selected, you can select the VPC where the dedicated cluster is created based on your business requirements.

    • If the dedicated cluster is set to Dedicated Cluster Created by Default, the following rules apply:

      • If one or more VPCs exist in the specified region, you can select one of them based on your business requirements.

      • If no VPCs exist in the specified region, this parameter is automatically set to VPC Created by Default. This way, the system creates a VPC for the dedicated cluster.

    Note

    If you want to create a VPC or vSwitch, you can click go to the VPC console to the right of vSwitch. For more information about how to create a VPC or vSwitch, see the "Resource Orchestration Service (ROS) console" section of the Create a VPC with an IPv4 CIDR block topic.

    vSwitch

    The vSwitch to which you want to connect the host.

    • If one or more vSwitches of the specified VPC exist in the specified zone, you can select one of them based on your business requirements.

    • If no vSwitches of the specified VPC exist in the specified zone, you can log on to the VPC console to create a vSwitch. Make sure that the vSwitch is created in the same region and zone as the specified VPC. For more information, see the "Resource Orchestration Service (ROS) console" section of the Create a VPC with an IPv4 CIDR block topic.

    • If the dedicated cluster is set to Dedicated Cluster Created by Default and the VPC is set to VPC Created by Default, this parameter is automatically set to vSwitch Created by Default. This way, the system creates a vSwitch for the dedicated cluster.

    Note

    If you want to create a VPC or vSwitch, you can click go to the VPC console to the right of vSwitch. For more information about how to create a VPC or vSwitch, see the "Resource Orchestration Service (ROS) console" section of the Create a VPC with an IPv4 CIDR block topic.

    Authorization

    The authorization to resource groups. The first time you create a host, click Authorize Now. On the Cloud Resource Access Authorization page, click Confirm Authorization Policy to grant permissions on security groups.

    Important After you grant permissions, the AliyunRDSDedicatedHostGroupRole role is displayed on the Roles page of the Resource Access Management (RAM) console. If you want to use ApsaraDB for MyBase dedicated clusters, retain this role. If this role is deleted, you must grant the permissions again to perform related operations.

    Host Image

    The operating system (OS) image of the host. By default, AliLinux is used.

    Storage Type

    The storage type of the host. You can click Local SSD or Enhanced SSD (ESSD).

    Host Instance Type

    The instance type of the host.

    Storage Capacity

    The storage capacity of the host. This parameter is displayed only when the storage type of the host is set to Local SSD.

    Quantity

    The number of hosts that you want to create. For more information, see Number of hosts that are required to deploy an ApsaraDB MyBase for MySQL instance.

    Duration

    The subscription duration of the host. You can select Auto-renewal to prevent the host from being released upon expiration. This way, the system renews the host based on the specified subscription duration. For example, if you specify a subscription duration of three months, the system renews the host once every three months.

  5. Click Buy Now. On the Confirm Order page, read and select the Terms of Service, and then click Pay.

Host management

Learn more

You can join the DingTalk group 32484333 to obtain technical support from database experts, view success stories, and engage with experts on live streams that are provided on a regular basis.

What to do next

After a host is created, you can create instances on the host. For more information, see Create an ApsaraDB MyBase for MySQL instance.