This topic describes how to create a dedicated cluster in ApsaraDB for MyBase and create hosts and instances in the dedicated cluster.
For more information about ApsaraDB for MyBase, see What is ApsaraDB for MyBase?.
- Log on to the ApsaraDB for MyBase console.
- In the upper-left corner of the page, select the region where you want to deploy the dedicated cluster.
- In the left-side navigation pane, click Clusters. On the page that appears, click Create Dedicated Cluster.
- In the Create Dedicated Cluster panel, configure the following parameters.
Parameter Description Engine
The database engine of the dedicated cluster. The MySQL, SQL Server, and PostgreSQL database engines are supported.Notice Make sure that you select a suitable database engine. After you create a dedicated cluster, you cannot change the database engine.
Deployment Method This parameter appears only when you select the MySQL database engine.
- High-availability: You can deploy only High-availability Edition instances.
- Basic: You can deploy only Basic Edition instances.
- If you select High-availability, local SSDs and enhanced SSDs (ESSDs) are supported. If you want to deploy a MyBase for MySQL instance of the High-availability Edition in a dedicated cluster, make sure two hosts that use the same type of storage are deployed in the dedicated cluster.
- If you select Basic, only ESSDs are supported. If you want to deploy a MyBase for MySQL instance of the Basic Edition in a dedicated cluster, make sure one host is deployed in the dedicated cluster.
Dedicated Cluster Name The name of the dedicated cluster. VPC The VPC to which the dedicated cluster is connected. If you need to create a VPC, log on to the VPC console.Notice Make sure that the specified VPC meets your business requirements. After a dedicated cluster is created, you cannot change the VPC. Resource Allocation Policy The default policy that is used to schedule resources in the dedicated cluster.
- Balanced Allocation: The system preferentially creates database instances on the hosts that have the smallest load. This maximizes the system stability.
- Compact Allocation: The system preferentially creates database instances on the hosts that are created earlier than the other hosts and have fewer resources than the other hosts in the dedicated cluster. This maximizes the resource utilization.
Host Troubleshooting Policy The policy based on which the system handles host failures.
Note You can manually replace a faulty host only if the faulty host uses local SSDs. Only hosts that run the MySQL database engine support local SSDs. If you select the MySQL database engine, you can configure this parameter. If you select another database engine, this parameter defaults to Automatic Host Replacement.
- Automatic Host Replacement: The system automatically replaces faulty hosts.
- If a faulty host uses ESSDs, the host is automatically replaced after the computing resources that are stored on ESSDs are migrated to another host.
- If a faulty host uses local SSDs, the host is replaced only after all instances are removed from the host.
- Manual Host Replacement: You must manually replace the faulty hosts.
Grant OS Permissions Specifies whether to enable the feature that allows you to have permissions on the host OS.Note If you enable this feature for a dedicated cluster that runs the MySQL, SQL Server, or PostgreSQL database engine, you can log on to the hosts in the dedicated cluster to perform operations such as uploads, downloads, and installation of software. Make sure that you select a suitable option. After you create a dedicated cluster, you cannot change Grant OS Permissions.
- This step is required only when you create a dedicated cluster in ApsaraDB for MyBase
for the first time.
When you create a dedicated cluster in ApsaraDB for MyBase for the first time, the following message appears in the lower part of the page: You must authorize permissions on ECS ENIs and security groups. Click Authorize Now. On the Cloud Resource Access Authorization page, click Confirm Authorization Policy.Note After authorization, the AliyunRDSDedicatedHostGroupRole role appears on the RAM Roles page in the Resource Access Management console. If you want to use dedicated clusters in ApsaraDB for MyBase, retain the AliyunRDSDedicatedHostGroupRole role. If the role is deleted, you must grant the permissions again to create a dedicated cluster.
- Click OK. On the Clusters page, find the created cluster and click Details in the Actions column. In the left-side navigation pane of the cluster details page, click Hosts. On the page that appears, click Add Host.
- On the page that appears, configure the following parameters.
Parameter Description Product Type Select Dedicated Cluster.Note
- If you purchase a host that uses local SSDs, the fees of the host include the fees of all instances on the host.
- If you purchase 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 storage plan. This way, your storage costs can be reduced. You are billed for using storage plans based on the subscription billing method. A storage plan can be used to offset the storage costs of pay-as-you-go instances that are deployed in the same region as the storage plan.
Region The region where you want to deploy the host. The host and the dedicated cluster to which the host belongs must be deployed in the same region. Dedicated Cluster The dedicated cluster in which you want to create the host. Zone The zone where you want to deploy the host. To improve service availability, we recommend that you deploy hosts in different zones. Host Image The OS image of the host. The available OS images vary based on the database engine that you select when you create the dedicated cluster.
- If you use MySQL or PostgreSQL as the database engine of the dedicated cluster, you can select AliLinux as the OS image of the host.
- If you use SQL Server as the database engine of the dedicated cluster, you can select Windows as the OS image of the host.
Storage Type The storage type of the host. You can specify Local SSD or Enhanced SSD (ESSD) as the storage type.Note Different database engines support different types of storage. You can view the storage types that are supported in the ApsaraDB for MyBase console. Host Instance Type The specifications of the host. Storage Capacity The storage capacity of the host that uses the Local SSD storage type.Note This parameter is available only if you set Storage Type to Local SSD. Network Type The ID of the VPC. VSwitch The vSwitch to which the host is connected. If no vSwitches are available, create a vSwitch as prompted. Quantity The number of hosts that you want to create. For more information, see Requirements for the number of hosts. Duration The subscription duration of the host. You can select Auto-renewal. The auto-renewal feature prevents the host from being released after the host expires. If this feature is enabled, 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.