This topic describes how to create an ApsaraDB for MyBase dedicated cluster, add a host, and create an instance.
Background information
For more information about ApsaraDB for MyBase, see What is ApsaraDB for MyBase?.
Procedure
Step 1: Create a dedicated cluster
- Log on to the ApsaraDB for MyBase console.
- In the upper-left corner of the page, select a region.
- On the Overview page, click Create Cluster.
- In the Create Dedicated Cluster panel, configure the parameters that are described in the following table.
Parameter Description Engine The engine of the dedicated cluster. Supported engines: MySQL, SQL Server, and Redis. Important- When you create a cluster, you must select the correct engine. This choice determines the available OS images when you add hosts and the database types when you create instances.
- You cannot change the engine after the cluster is created. Make sure that you select the correct engine.
Architecture The edition of the dedicated cluster. This parameter is available only when you set the Database Engine parameter to MySQL. This parameter is automatically set to High-availability Edition. Dedicated Cluster Name The name of the dedicated cluster. VPC The virtual private cloud (VPC) in which you want to create the dedicated cluster. If you want to create a VPC, log on to the VPC console. Important After a dedicated cluster is created, you cannot change the VPC. Make sure that you select an appropriate VPC.Resource Allocation Policy The default policy that is used to allocate resources in the dedicated cluster. Valid values: - Balanced Allocation: The system preferentially creates database instances on the hosts where no resources or fewer resources are allocated. This maximizes system stability.
- Compact Allocation: The system preferentially creates database instances on the hosts that are created earlier and have more allocated resources. This maximizes resource utilization.
Host Troubleshooting Policy The policy that is used to handle host failures. Valid values: - Automatic Host Replacement: The system automatically replaces the faulty hosts. Note
- If a faulty host uses enhanced SSDs (ESSDs), the host is automatically replaced after the computing resources on the 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.
Note This parameter is available only when you set the Database Engine parameter to MySQL. For other database engines, faulty hosts are automatically replaced.Grant OS Permissions Specifies whether to grant the host OS permissions. Note If the host OS permissions are granted on a dedicated cluster that runs the MySQL or SQL Server database engine, you can log on to the hosts in the dedicated cluster to perform operations such as upload, download, and installation of software. After you create a dedicated cluster, you cannot change the setting of Grant OS Permissions. Proceed with caution. - (Optional) The first time you create an ApsaraDB for MyBase dedicated cluster, a message at the bottom of the page prompts you to authorize access to ECS elastic network interfaces (ENIs) and security groups. Click Authorize Now, and then click Agree to Authorize on the Cloud Resource Access Authorization page.
Note After the authorization is complete, you can find the AliyunRDSDedicatedHostGroupRole role on the RAM Role Management page of the Resource Access Management (RAM) console. Do not delete this role when you use ApsaraDB for MyBase. If you delete the role, you must grant the permissions again to create a dedicated cluster.
- Click OK.
Step 2: Create a host
- On the Dedicated Clusters page, find the cluster that you want to manage and click the cluster ID.
- Click Add Host to go to the buy page.
- On the purchase page, set the following parameters.
Parameter Description Product type Select ApsaraDB for MyBase Managed Edition (Subscription). Note- If you purchase a host that uses local SSDs, the host fee includes all fees for the instances on the host.
- If you purchase a host that uses cloud disks (ESSDs), the host fee includes only compute costs. You are charged for storage when you create an instance. A Storage Package is a subscription-based resource plan that can offset pay-as-you-go storage bills in the same region. We recommend that you purchase a Storage Package to reduce storage costs.
Region The region where the host is located. Zone The zone where the host is located. We recommend that you distribute hosts across different zones to improve availability. Cluster type The value is Managed Cluster by default. Database type Select a database type. Valid values: - MySQL
- Microsoft SQL Server
- Redis
Dedicated cluster Select the dedicated cluster to which the host belongs. - If you have not created a cluster for the selected database engine in the current region, the system selects Dedicated Cluster Created by Default and automatically creates a cluster for the host.
- If you have already created one or more clusters for the selected database engine in the current region, you can select a target cluster as needed.
Note To create a dedicated cluster, click Create in Console. For more information, see Create a dedicated cluster.VPC The VPC of the dedicated cluster to which the host belongs. - If you select an existing dedicated cluster, you can select the VPC to which the cluster belongs.
- If the dedicated cluster is set to Dedicated Cluster Created by Default:
- If one or more VPCs exist in the region, you can select a VPC as needed.
- If no VPCs exist in the region, the system selects VPC Created by Default and automatically creates a VPC for the cluster.
Note If you need to create a new VPC or vSwitch, click Create in Console to the right of the vSwitch parameter. For more information about how to create a VPC or vSwitch, see Create a VPC with an IPv4 CIDR block.vSwitch The vSwitch to which the host belongs. - If the specified VPC has an existing vSwitch in the current zone, you can select the vSwitch.
- If the specified VPC does not have a vSwitch in the current zone, you can log on to the vSwitch console to create a vSwitch. Make sure that the vSwitch is in the same region and zone as the VPC. For more information, see Create a VPC with an IPv4 CIDR block.
- If you select the default options for the dedicated cluster and the VPC, and also select vSwitch Created by Default, the system automatically creates a vSwitch.
Note If you need to create a new VPC or vSwitch, click Create in Console to the right of the vSwitch parameter. For more information about how to create a VPC or vSwitch, see Create a VPC with an IPv4 CIDR block.Security group authorization If you are adding a host for the first time, click Authorize Now. On the Cloud Resource Access Authorization page that appears, click Confirm Authorization Policy to grant security group permissions. Important After you grant the permissions, the AliyunRDSDedicatedHostGroupRole role appears on the Roles page of the Resource Access Management (RAM) console. Do not delete this role when you use ApsaraDB for MyBase. If you delete this role, you must grant the permissions again to use the features of ApsaraDB for MyBase.Host image The operating system image of the host. Valid values: - If the database engine is MySQL or Redis, the host image is AliLinux by default.
- If the database engine is Microsoft SQL Server, select one of the following values:
- 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: - For the MySQL database engine, the valid values are local SSD and Enhanced SSD (ESSD).
- For the Microsoft SQL Server and Redis database engines, the storage type is Enhanced SSD (ESSD) by default.
Host instance type Select a host instance type. You can filter the instance types by the number of vCores, memory size, and instance family. Note For more information about host instance types, see Host instance type details.Storage capacity The storage capacity of the host. This parameter applies to ApsaraDB for MyBase for MySQL instances that use local SSDs and for ApsaraDB for MyBase for Redis instances. Note The storage capacity varies based on the host instance type that you select.Quantity The number of hosts to add. For more information, see Host quantity requirements. Duration The subscription duration of the host. You can select auto-renewal to prevent the host from being released when its subscription expires. The system renews the subscription based on the specified duration. For example, if you select a 3-month duration, the subscription is automatically renewed every 3 months. - Click Buy Now. Confirm the host information, read and select the Terms of Service, and then complete the payment.
Step 3: Create an instance
When you configure parameters to create an ApsaraDB for MyBase instance, the parameter configurations vary based on the database engine. For more information, see the following topics:
What to do next
You can perform the following operations on an ApsaraDB MyBase for MySQL instance:
For ApsaraDB for MyBase for SQL Server instances, see the following topics:
For ApsaraDB for MyBase for Redis instances, see Connect to a Redis instance.
References
Create an ApsaraDB for MyBase instance该文章对您有帮助吗?