Hosts are the physical compute units inside a dedicated cluster. Before creating database instances, add at least one host to your dedicated cluster.
Prerequisites
Before you begin, make sure you have:
A dedicated cluster. See Create a dedicated cluster
Minimum host requirements
The number of hosts required depends on the database engine and edition you plan to deploy.
| 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 |
Add a host
Log on to the ApsaraDB for MyBase console.
In the upper-left corner, select a region.
In the left navigation pane, click Hosts. On the Hosts page, click Add Host.
On the buy page, configure the parameters described in the following sections, then click Buy Now.
Confirm the host information, read and select the Terms of Service, and complete payment.
Required parameters
| Parameter | Description |
|---|---|
| Product type | Select Dedicated Cluster. |
| Region | The region where the host is created. |
| Zone | The zone where the host is created. To improve availability, create hosts in different zones. |
| Database engine | The database engine the host supports. Valid values: MySQL and Microsoft SQL Server. |
| Dedicated cluster | The dedicated cluster that contains the host. If no cluster for the selected database engine exists in the selected region, this is automatically set to Dedicated Cluster Created by Default and the system creates one. To create a cluster manually, go to the ApsaraDB for MyBase console. See Create a dedicated cluster. |
| VPC | The virtual private cloud (VPC) for the host. If an existing dedicated cluster is selected, select the VPC where the dedicated cluster is created. If Dedicated Cluster Created by Default is selected, the system uses an existing VPC or creates one automatically (VPC Created by Default). To create a VPC or vSwitch manually, see Create a VPC with an IPv4 CIDR block. |
| vSwitch | The vSwitch to connect the host. If no vSwitch exists in the selected zone, create one in the VPC console in the same region and zone as the VPC. If both Dedicated Cluster Created by Default and VPC Created by Default are selected, this is automatically set to vSwitch Created by Default. |
| Host instance type | The instance type of the host. Filter by number of cores, memory, and instance family. See Instance types of hosts. |
| Quantity | The number of hosts to create. See Minimum host requirements for guidance. |
| Duration | The subscription period. Enable Auto-renewal to prevent the host from being released when the subscription expires. The system renews the host at the end of each subscription period. For example, a three-month subscription renews every three months. |
Storage parameters
| Parameter | Description |
|---|---|
| Storage type | The storage type of the host. For MySQL hosts, choose Local SSD or Enhanced SSD (ESSD). For Microsoft SQL Server hosts, this is automatically set to Enhanced SSD (ESSD). |
| Storage capacity | The storage capacity of the host. This parameter is only available when Storage type is set to Local SSD for MySQL hosts. The available capacity range depends on the selected host instance type. |
The storage type affects how you are billed. With Local SSD, host fees include the fees for all instances on the host. With Enhanced SSD (ESSD), host fees cover only compute. Storage is billed separately when you create instances. To reduce storage costs, purchase a Storage Package — a subscription storage plan that offsets the storage costs of pay-as-you-go instances in the same region.
Host image
| Parameter | Description |
|---|---|
| Host image | The operating system (OS) image of the host. For MySQL hosts, this is automatically set to AliLinux. For Microsoft SQL Server hosts, select one of the following: 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). |
Authorization (first-time setup only)
If this is the first host you are creating, grant the required permissions:
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 on the Roles page of the Resource Access Management (RAM) console. Retain this role. If it is deleted, you must complete authorization again before performing related operations.
What's next
After the host is created, create database instances on the host:
References
API reference
| Operation | Description |
|---|---|
| CreateDedicatedHost | Creates a host. |