Hosts are the physical machines in your ApsaraDB for MyBase dedicated cluster. You must create at least one host before you can create database instances.
Prerequisites
Before you begin, ensure that you have:
A dedicated cluster. For more information, see Create a dedicated cluster.
Minimum host requirements
The minimum number of hosts depends on the database engine and edition you plan to run.
| Database engine | Edition | Minimum hosts |
|---|---|---|
| MySQL | Master-replica Edition | 1 |
| MySQL | High-availability Edition | 2 |
| SQL Server | Basic Edition | 1 |
| SQL Server | High-availability Edition | 2 |
| SQL Server | Cluster Edition (AlwaysOn) | 2 |
Create a host
Log on to the ApsaraDB for MyBase console.
In the upper-left corner, select a region.
In the left-side navigation pane, click Hosts. On the Hosts page, click Add Host.
On the buy page, configure the following parameters.
Basic settings
| Parameter | Description |
|---|---|
| Product type | Select Dedicated Cluster. |
| Region | The region where you want to create the host. |
| Zone | The zone where you want to create the host. To improve availability, create hosts in different zones. |
| Database engine | The database engine the host supports. Valid values: MySQL, Microsoft SQL Server. |
Cluster and network settings
| Parameter | Description |
|---|---|
| Dedicated cluster | The dedicated cluster in which to create the host. If no dedicated clusters running the specified database engine exist in the region, this parameter is set to Dedicated Cluster Created by Default and the system creates a cluster automatically. Otherwise, select an existing cluster. |
| VPC | The virtual private cloud (VPC) in which to create the host. If you selected an existing cluster, select the VPC where that cluster resides. If the cluster is set to Dedicated Cluster Created by Default, select an existing VPC or let the system create one (VPC Created by Default). |
| vSwitch | The vSwitch to connect the host to. Select an existing vSwitch in the specified zone, or let the system create one (vSwitch Created by Default) if none exist. To create a VPC or vSwitch manually, see Create a VPC with an IPv4 CIDR block. |
| Authorization | Resource group access authorization. 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. |
After authorization, the AliyunRDSDedicatedHostGroupRole role appears in the Resource Access Management (RAM) console. Keep this role — if it is deleted, you must re-authorize before you can use ApsaraDB for MyBase.
Host configuration
| Parameter | Description |
|---|---|
| Host image | The operating system (OS) image for the host. When Database engine is set to MySQL, this is automatically set to AliLinux. When set to Microsoft SQL Server, select one of the following Windows images: Windows (With SQL Server EE AlwaysOn License), Windows (With SQL Server SE License), Windows (With SQL Server EE License), or Windows (With SQL Server Web Edition License). |
| Storage type | The storage type for the host. When Database engine is set to MySQL, select Local SSD or Enhanced SSD (ESSD). When set to Microsoft SQL Server, this is automatically set to Enhanced SSD (ESSD). |
| Host instance type | The instance type of the host. Filter by the number of CPU cores, memory size, and instance family. For details, see Instance types of hosts. |
| Storage capacity | The storage capacity of the host. Available only when Storage type is set to Local SSD for ApsaraDB MyBase for MySQL. The available range varies by instance type. |
| Quantity | The number of hosts to create. See Minimum host requirements. |
| Duration | The subscription duration. Enable Auto-renewal to automatically renew the host when it expires, using the same duration each time. |
The billing model depends on the storage type you select:
Local SSD: The host fee covers all instances on the host.
Enhanced SSD (ESSD): The host fee covers computing only. Storage is billed separately when you create instances. To reduce storage costs, purchase a Storage Package — a subscription storage plan that offsets pay-as-you-go storage costs for instances in the same region.
Click Buy Now. Review the host configuration, read and accept the Terms of Service, and complete the payment.
What's next
After the host is created, create database instances on it:
References
API reference
| Operation | Description |
|---|---|
| CreateDedicatedHost | Creates a host. |