Scenario-based parameters

Updated at:

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:

  • Balanced query concurrency

  • General-purpose memory and cache configurations

  • Standard load balancing policies

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:

  • Optimized batch import configurations

  • Enhanced data compression strategies

  • Query adjustments for large-scale data scans

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:

  • High-concurrency query processing capability

  • Enhanced in-memory caching to reduce latency

  • Connection pool optimization for rapid response

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.

  1. Log on to the ApsaraDB for SelectDB console.

  2. In the upper-left corner of the page, select the region where your instance is located.

  3. On the Instances page, click the target Instance ID to open the Instance Details page.

  4. In the left-side navigation pane, click Parameters.

  5. On the Parameters page, select the parameter settings tab and click Modify scene settings.

  6. 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.

Important

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.

  1. Log on to the ApsaraDB for SelectDB console.

  2. In the upper-left corner of the page, select the region where your instance is located.

  3. On the Instances page, click the target Instance ID to open the Instance Details page.

  4. In the left-side navigation pane, click Parameters.

  5. On the Parameters page, select the parameter settings tab and click Reuse parameters from another cluster.

  1. In the Reuse parameters from another cluster dialog box, select the source cluster.

  2. Click Next, review the Parameter comparison, and then click Next.

  3. 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.

      Important

      If 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.

    Note

    A 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.

  4. Click Confirm and apply.

    Note

    After 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.