Scenario-based parameters
Scenario-based parameters are preset collections of configuration settings that allow you to quickly optimize your ApsaraDB for SelectDB cluster for a specific workload. Applying these parameters simplifies configuration, improves query and write performance, and ensures configuration consistency across different clusters.
Preset scenario-based parameters
ApsaraDB for SelectDB provides three preset scenario-based parameter templates. The following table describes the use cases and optimization focus for each template.
|
Template name |
Description |
|
General Analysis Scenario |
Use cases: The default configuration for various mixed workloads, such as interactive data analysis and reporting queries. This template balances performance and resource consumption. Optimization focus:
|
|
Log Analysis Scenario |
Use cases: Designed for storing and analyzing massive volumes of log data, with a focus on high-throughput writes and large-scale data scans. This template is ideal for write-heavy, read-light scenarios that involve batch data ingestion and infrequent, latency-insensitive queries. Optimization focus:
|
|
High-Concurrency Point Query Scenario |
Use cases: Optimized for a high volume of concurrent, precise queries (typically based on a primary key) that require millisecond-level responses. This template is ideal for read-heavy, write-light workloads with a QPS ranging from tens to hundreds of thousands, where query latency is critical. Optimization focus:
|
Select a scenario for a new instance
On the ApsaraDB for SelectDB purchase page, select the appropriate Business Scenario.
Modify parameters for an existing instance
For an existing instance, you can modify its parameter configuration in two ways: apply a preset scenario-based template or reuse parameters from another cluster.
Apply or switch a scenario-based template
Use this method to quickly switch your cluster to a standard, optimized configuration template.
-
Log on to the ApsaraDB for SelectDB console.
-
In the upper-left corner of the page, select the region where your instance is located.
-
On the Instances page, click the target Instance ID to open the Instance Details page.
-
In the left-side navigation pane, click Parameters.
-
On the Parameters page, select the parameter settings tab and click Modify scene settings.
-
Select the scenario to which you want to switch, review the Scene transition impact, and then click Switch scene.
-
The instance status changes to Modifying Parameters. After the modification is complete, the status changes to running.
-
If the scenario-based parameters do not meet your needs, you can customize them. For more information, see Parameter configuration.
-
Reuse parameters from another cluster
Use this method to precisely copy the parameter configuration from one cluster to another to ensure environment consistency.
Note the following limitations for reusing cluster parameters:
-
You can only copy parameters between BE clusters within the same instance.
-
Copying parameters between FE clusters or across cluster types (for example, from a BE to an FE cluster) is not supported.
-
This operation requires an available source cluster.
-
Log on to the ApsaraDB for SelectDB console.
-
In the upper-left corner of the page, select the region where your instance is located.
-
On the Instances page, click the target Instance ID to open the Instance Details page.
-
In the left-side navigation pane, click Parameters.
-
On the Parameters page, select the parameter settings tab and click Reuse parameters from another cluster.
-
In the Reuse parameters from another cluster dialog box, select the source cluster.
-
Click Next, review the Parameter comparison, and then click Next.
-
In the Confirm and submit dialog box, configure the following parameters as prompted:
Parameter
Description
modification time
ApsaraDB for SelectDB instances support the following modification methods:
-
Modify Now: The parameter changes are applied to the instance immediately.
-
Modify Within Maintenance Window: The parameter changes are applied during the maintenance window that you specify. For more information about how to set a maintenance window, see Set a maintenance window.
ImportantIf the Force Restart column for a parameter is Yes, the cluster will restart. We strongly recommend setting the modification time to Apply during maintenance window to minimize the impact of the cluster restart on your services.
parallel operation
Specifies whether to perform the operation on nodes in parallel. By default, the system uses a rolling operation.
NoteA restart occurs only if the Force Restart column for a modified parameter is Yes.
-
If you do not select Parallel operation nodes, a rolling operation is performed, which has the following features:
The system modifies and restarts nodes sequentially. This can cause brief connection interruptions, but the cluster remains available. This is the recommended method.
-
Selecting Parallel Operation Node configures a parallel operation, which has the following features:
All nodes are modified and restarted simultaneously, causing the cluster to be unavailable for one to five minutes. Choose this method if you need a faster restart.
-
-
Click Confirm and apply.
NoteAfter you submit parameter changes, the changes do not take effect immediately. On the Modification History tab, you can check the Take Effect column for the corresponding Parameter Name to confirm whether the parameters have taken effect.