Before you can use the features of ApsaraDB for MyBase, you must create hosts in your ApsaraDB for MyBase dedicated cluster and create instances on the hosts.
Prerequisites
A dedicated cluster is created. For more information, see Create a dedicated cluster.Requirements for the number of hosts
Database engine | Edition | Minimum number of hosts |
---|---|---|
MySQL | Master-replica Edition | 1 |
High-availability Edition | 2 | |
SQL Server | Basic Edition | 1 |
High-availability Edition | 2 | |
Cluster Edition (AlwaysOn) | 2 |
Procedure
- Log on to the ApsaraDB for MyBase console.
- In the upper-left corner of the page, select a region.
- In the left-side navigation pane, click Hosts. On the Hosts page, click Add Host.
- On the buy page, configure the parameters that are described in the following table.
Parameter Description Product Type Select Dedicated Cluster. Note- If you create a host that uses local SSDs, the fees of the host include the fees of all instances on the host.
- If you create a host that uses enhanced SSDs (ESSDs), the fees of the host include only the computing fees. When you create an instance on the host, you must pay for the ESSD storage. We recommend that you select Storage Package to purchase a subscription storage plan. The subscription storage plan can be used to offset the storage costs of pay-as-you-go instances that are created in the same region as the storage plan. This way, your storage costs are reduced.
Region The region where you want to create the host. 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. Valid values: - MySQL
- Microsoft SQL Server
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) in which 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 "Step 1: Create a VPC and a vSwitch" 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 "Step 1: Create a VPC and a vSwitch" 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 "Step 1: Create a VPC and a vSwitch" 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. - When Database Engine is set to MySQL, this parameter is automatically set to AliLinux.
- Valid values when Database Engine is set to Microsoft SQL Server:
- 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 when Database Engine is set to MySQL: Local SSD and Enhanced SSD (ESSD).
- When Database Engine is set to Microsoft SQL Server, this parameter is automatically set to Enhanced SSD (ESSD).
Host Instance Type The instance type of the host. You can use the number of cores, memory, and instance family to filter instance types. Note For more information, see Instance types of hosts.Storage Capacity The storage capacity of the host. This parameter is available only when Storage Type is set to Local SSD for ApsaraDB MyBase for MySQL. Note The storage capacity varies based on the host instance type that you select.Quantity The number of hosts that you want to create. For more information, see the "Requirements for the number of hosts" section of this topic. 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. - Click Buy Now. Confirm the host information, read and select the Terms of Service, and then complete the payment.
References
Related operations
Operation | Description |
---|---|
CreateDedicatedHost | Creates a host. |
What to do next
After a host is created, you must create instances on the host. For more information, see the following topics: