After you create a StarRocks instance, you can quickly obtain a managed and high-performance environment for large-scale data analysis and queries, without the need to build and maintain the infrastructure.
Procedure
Go to the homepage of E-MapReduce (EMR) Serverless StarRocks.
Log on to the EMR console.
In the left-side navigation pane, choose
.In the top navigation bar, select a region based on your business requirements.
In the Instances section, click Create Instance.
In the dialog box that appears, select an instance type based on your business requirements. The following table describes the instance types.
Instance Type
Description
Shared-nothing
StarRocks shared-nothing instances are suitable for business scenarios in which high query performance is required, such as online analytical processing (OLAP) multidimensional analysis, high-concurrency queries, and real-time data analysis. StarRocks shared-nothing instances store data in cloud disks or local disks to ensure high data read and write efficiency.
Shared-data
StarRocks shared-data instances are suitable for business scenarios in which cost-effective storage is required but high query performance is not required, such as OLAP multidimensional analysis, real-time data analysis, and data warehousing. StarRocks shared-data instances use a compute-storage separation architecture.
On the E-MapReduce Serverless StarRocks page, configure the parameters. The following table describes the parameters.
NoteThe parameters that you must configure vary based on the instance type. Backend nodes (BEs) are used in shared-nothing instances, and compute nodes (CNs) are used in shared-data instances.
Parameter
Description
Billing Method
The billing method. Valid values: Subscription and Pay-as-you-go.
Subscription Duration
The subscription duration of the instance. The default value is 1 Month. You can view the supported subscription durations on the buy page.
Auto-renewal
After you enable auto-renewal for a subscription instance, the system automatically renews the instance based on the specified renewal cycle.
Region
The geographic location where the instance resides.
ImportantYou cannot change the region after the instance is created. Select a region based on your business requirements.
Zone
The zone where the instance resides.
ImportantYou cannot change the zone after the instance is created. Select a zone based on your business requirements.
VPC
The virtual private cloud (VPC) in which the instance is deployed.
You can select an existing VPC or click Create VPC to create a VPC in the VPC console. For more information, see Create and manage a VPC.
vSwitch
The vSwitch of the instance. vSwitch is a basic component of VPCs. vSwitches can be used to establish network communication between cloud resources.
You can select an existing vSwitch or click Create vSwitch to create a vSwitch in the VPC console. For more information, see Create and manage a vSwitch.
Multi-zone Disaster Recovery
This parameter is available only for StarRocks shared-data instances.
By default, the feature is disabled. If you enable the feature, real-time backup and disaster recovery across zones are supported. This improves data reliability and ensures the high availability (HA) of the system.
ImportantEnabling the multi-zone disaster recovery feature will lead to certain resource and cost expenses.
Additional frontend nodes (FEs) are required to coordinate and manage cross-zone backup tasks.
Multi-zone backup is supported. Therefore, a zone-redundant storage (ZRS) bucket can be used for the underlying storage, which may incur additional data storage fees.
You can select 2 Zones or 3 Zones for this parameter based on your business requirements.
If you have high requirements for data security and disaster recovery, we recommend that you enable the multi-zone disaster recovery feature.
For more information, see Disaster recovery (beta) and Fees for multi-zone data storage.
Instance Edition
The edition of the instance. Valid values: Basic Edition and Standard Edition. For more information, see Instance editions.
Version
The community version of StarRocks.
BE Specification Type
This parameter is available only for shared-nothing instances.
The specification type of BEs in an instance. BE specification types vary based on the instance edition.
Basic Edition: Only Standard Specifications is supported.
Standard Edition: Standard Specifications, Memory-optimized Specifications, Network-enhanced Specifications, High-performance Storage, and High-specification Storage are supported.
Standard Specifications: The default specifications. One CU is equal to 1 CPU core and 4 GiB of memory. Enterprise SSDs (ESSDs) are used for data storage.
Memory-optimized Specifications: One CU is equal to 1 CPU core and 8 GiB of memory. This option is suitable for scenarios in which a large amount of memory resources are required, such as scenarios where complex queries are made or scenarios where high concurrency is required. ESSDs are used for data storage.
Network-enhanced Specifications: One CU is equal to 1 CPU core and 4 GiB of memory. The network bandwidth is two or more times that of the standard specifications. This option is suitable for analysis of external tables that contain a large amount of data. ESSDs are used for data storage.
High-performance storage: If you select this option, you must select the desired specifications based on your business requirements. This option is suitable for scenarios in which high storage I/O performance is required. Local SSDs are used for data storage.
High-specification Storage: If you select this option, you must select the desired specifications based on your business requirements. Local HDDs are used for data storage. This option is suitable for scenarios in which a large volume of data needs to be stored and cost-effective storage is required, but high storage I/O performance is not required.
NoteHigh-specification Storage is available only if you are added to the specific whitelist.
BE Specifications
This parameter is available only for shared-nothing instances.
Basic Edition: The value of the BE Specifications parameter is fixed to 8. Unit: CUs.
Standard Edition:
Standard Specifications, Memory-optimized Specifications, and Network-enhanced Specifications: The value of the BE Specifications parameter can be 8, 16, 32, or 64. Unit: CUs.
High-performance Storage or High-specification Storage: Select a value from the BE Specifications drop-down list.
BE Storage Configurations
This parameter is available only for shared-nothing instances.
Basic Edition:
Data Disk Type: Only ESSD PL1 (Recommended) can be selected.
Data Disk Size: The value is fixed to 50. Unit: GB.
Data Disk Quantity: The value is fixed to 1.
Standard Edition:
Standard Specifications, Memory-optimized Specifications, or Network-enhanced Specifications:
Data Disk Type: Valid values: ESSD PL0, ESSD PL1 (Recommended), ESSD PL2, and ESSD PL3. For more information, see ESSDs.
Data Disk Size: Valid values: 100 to 65000. Unit: GB. Step size: 100.
Data Disk Quantity: The default value is 1. Valid values: 1 to 8. Step size: 1.
Number of BEs
This parameter is available only for shared-nothing instances.
The number of BEs on an instance.
If you set the Instance Edition parameter to Basic Edition, the number of BEs is fixed to 1.
If you set the Instance Edition parameter to Standard Edition, the number of BEs ranges from 3 to 100. Step size: 1.
CN Specification Type
This parameter is available only for StarRocks shared-data instances.
The specification type of CNs in an instance. CN specification types vary based on the instance edition.
Basic Edition: Only Standard Specifications is supported.
Standard Edition: Standard Specifications, Memory-optimized Specifications, Network-enhanced Specifications, High-performance Storage, and High-specification Storage are supported.
Standard Specifications: The default specifications. One CU is equal to 1 CPU core and 4 GiB of memory. Enterprise SSDs (ESSDs) are used for data storage.
Memory-optimized Specifications: One CU is equal to 1 CPU core and 8 GiB of memory. This option is suitable for scenarios in which a large amount of memory resources are required, such as scenarios where complex queries are made or scenarios where high concurrency is required. ESSDs are used for data storage.
Network-enhanced Specifications: One CU is equal to 1 CPU core and 4 GiB of memory. The network bandwidth is two or more times that of the standard specifications. This option is suitable for analysis of external tables that contain a large amount of data. ESSDs are used for data storage.
High-performance storage: If you select this option, you must select the desired specifications based on your business requirements. This option is suitable for scenarios in which high storage I/O performance is required. Local SSDs are used for data storage.
High-specification Storage: If you select this option, you must select the desired specifications based on your business requirements. Local HDDs are used for data storage. This option is suitable for scenarios in which a large volume of data needs to be stored and cost-effective storage is required, but high storage I/O performance is not required.
NoteHigh-performance Storage and High-specification Storage are available only if you are added to the specific whitelist.
CN Specifications
This parameter is available only for StarRocks shared-data instances.
Basic Edition: The value of the CN Specifications parameter is fixed to 8. Unit: CUs.
Standard Edition:
Standard Specifications, Memory-optimized Specifications, and Network-enhanced Specifications: The value of the CN Specifications parameter can be 8, 16, 32, or 64. Unit: CUs.
High-performance Storage or High-specification Storage: Select a value from the CN Specifications drop-down list.
CN Cache Configurations
This parameter is available only for StarRocks shared-data instances.
The cloud disk used for data caching. You can specify the disk type, disk size, and number of disks based on your requirements for data read and write performance.
Basic Edition:
Cache Disk Type: Only ESSD PL1 (Recommended) can be selected.
Cache Disk Size: The value is fixed to 50. Unit: GB.
Cache Disk Quantity: The value is fixed to 1.
Standard Edition:
Standard Specifications, Memory-optimized Specifications, or Network-enhanced Specifications:
Cache Disk Type: The valid values are ESSD PL0, ESSD PL1 (Recommended), ESSD PL2, and ESSD PL3. For more information, see Overview of Block Storage.
Cache Disk Size: The disk size ranges from 200 to 65000. Unit: GB.
NoteAfter you specify a disk size based on your business requirements, the system adjusts the disk size based on the value that you specified. If the specified disk size is out of the supported range, the system will adjust the value to ensure optimal performance.
Cache Disk Quantity: The default value is 1. Valid values: 1 to 8. Step size: 1.
Number of CNs
This parameter is available only for StarRocks shared-data instances.
The number of CNs on an instance. Valid value: 1 to 100.
HA
By default, this switch is turned on. You can turn on HA only if you set the Instance Edition parameter to Standard Edition. If you turn on HA, the system increases the number of frontend nodes (FEs) from 1 to 3 to reduce the risk of failures.
ImportantWe strongly recommend that you turn on HA in the production environment.
FE Resource Configuration
The FE resource configuration varies based on the instance edition.
If you set the Instance Edition parameter to Basic Edition, the resource FE configurations are fixed. The number of CUs is 4, the storage size is 50 GB, and the number of FEs is 1.
If you set the Instance Edition parameter to Standard Edition, the FE resource configurations vary based on the number and configurations of BEs. The number of FEs varies based on whether you turn on HA. If you do not turn on HA, the number of FEs is 1. If you turn on HA, the number of FEs is 3.
You can click Edit to modify the Specifications, Storage Size, and Number of Nodes parameters based on your business requirements.
Data Storage
This parameter is available only for StarRocks shared-data instances.
The bill for data storage is generated on an hourly basis based on your actual usage. Unit: GB. For more information, see Billable items.
Total Resource Configuration
The details of the FE resources and BE or CN resources.
Instance Name
The name of the instance. The name must be 1 to 64 characters in length and can contain only letters, digits, hyphens (-), and underscores (_).
Administrator
The administrator that is used to manage the StarRocks instance. The value is fixed to admin.
Password and Confirm Password
The password of the administrator. You must record the password. The password is required when you manage and use the instance. If you forget the password, you can reset it. For information about how to reset the password, see How do I reset the password of a StarRocks instance?
The password must be 8 to 30 characters in length and contain at least one uppercase letter, one lowercase letter, one digit, and one special character. The following special characters are supported:
@ # $ % ^ * _ + -
.RAM Role
The RAM role that allows the instance to access Object Storage Service (OSS).
(Optional)
You can use the default resource group, select an existing resource group, or click Create Resource Group to create a resource group in the Resource Management console. For information about how to create a resource group, see Create a resource group.
NoteResource Group allows you to sort resources owned by your Alibaba Cloud account into groups. This simplifies resource and permission management within your Alibaba Cloud account. For more information about resource groups, see What is Resource Group?
(Optional)
You can add a tag when you create an instance or add a tag on the Instance Details tab after an instance is created. Tags help you identify and manage instance resources.
Read the terms of service, select the check box for Terms of Service, and then click Create Instance. Then, complete the payment.
After the payment is complete, you can view the creation progress on the Instances tab. The instance is successfully created if the instance is in the Running state.
Instance editions
You cannot change the instance edition after an instance is created. Exercise caution when you select the instance edition.
Item | Basic Edition | Standard Edition |
Scenario | Basic Edition can be used only for user experience and testing. | Standard Edition can be used in all scenarios, including testing and production. |
Resource limit |
| You can purchase resources based on your business requirements. |
Stability | HA is not supported, no SLA commitment is provided, and stability cannot be ensured. | If you turn on HA, SLA commitment is provided to ensure the stability. |
Instance management operation |
| All operations are supported. |
References
For information about how to select the required specifications, see Instance specification planning and recommendations.
For information about how to quickly create an instance, see the following topics:
You can connect to an instance by using multiple methods, such as EMR StarRocks Manager, Quick BI, and Data Management (DMS). For more information, see the topics in the Instance connection directory.
We recommend that you use EMR StarRocks Manager to connect to an instance. For more information, see Use EMR StarRocks Manager to connect to an EMR Serverless StarRocks instance.