All Products
Search
Document Center

PolarDB:Configure cluster and node parameters

Last Updated:Mar 28, 2026

PolarDB uses a two-level parameter system: cluster parameters apply to every node in the cluster, while node parameters apply to a single node. After creating a cluster, you can modify both types through the PolarDB console, export the current settings as a reusable parameter template, and compare parameter values across nodes.

How it works

Cluster parameters vs. node parameters

TypeScopeWhen to use
Cluster parameterAll nodes in the clusterApply a setting uniformly, such as adjusting connection limits or query cache behavior
Node parameterA single node onlyFine-tune a specific node, such as adjusting innodb_buffer_pool_size for the primary node

When you modify a cluster parameter, PolarDB applies it to all nodes immediately (or after a restart, if the parameter requires one). When you modify a node parameter, only that node is affected — other nodes retain their current values.

Parameter inheritance during failover

  • When a new node joins the cluster, it automatically inherits the cluster's current parameter settings.

  • During a primary node failover, both the original primary (now read-only) and the original read-only node (now primary) retain their own parameter settings unchanged.

  • When the primary zone fails and a node in the secondary zone becomes the new primary, the cluster's parameter settings are applied to that node.

Static vs. dynamic parameters

Parameters with Force Restart set to Yes are static — changes take effect only after all nodes in the cluster are restarted. Parameters without a restart requirement take effect immediately after you submit the change. Check the Force Restart column before modifying a parameter to plan for any service impact.

Prerequisites

Before you begin, ensure that you have:

  • A PolarDB for MySQL cluster

  • The permissions required to modify cluster or node parameters in the PolarDB console

Usage notes

  • All parameters in the PolarDB console are prefixed with loose_ for MySQL configuration file compatibility. For example, loose_rds_audit_log_event_buffer_size and rds_audit_log_event_buffer_size behave identically — modify the loose_-prefixed version in the console.

  • Only a subset of node parameters can be modified in the console:

    • PolarDB for MySQL 5.6 and 5.7: innodb_buffer_pool_size

    • PolarDB for MySQL 8.0: innodb_buffer_pool_size, loose_oss_outfile_buffer_size, loose_max_oss_outfile_threads, loose_csv_oss_buff_size

  • To modify node parameters not listed above, go to Quota Center and click Apply in the Actions column for the Set cluster parameters and node parameters quota. In the Reason field, specify the parameters and cluster ID. For additional assistance, contact us.

Modify parameters

Cluster parameters and node parameters share the same workflow — select Cluster or a specific node from the drop-down list to control which scope you are modifying.

  1. Log on to the PolarDB console.

  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Parameters.

  5. In the upper-left corner of the parameters page, select Cluster from the drop-down list to modify cluster parameters, or select a specific node to modify that node's parameters.

    Select node

  6. Click Modify.

  7. Find the parameter and enter a new value. Values must fall within the range shown in the Range to Be Modified column. Click the 参数图标 icon next to a parameter name to view its details.

    Values outside the allowed range trigger an error when you click Submit Changes.

    Enter parameter value

  8. Click Submit Changes.

  9. In the Save Changes panel, select the nodes you want the change to apply to, then click OK.

    Important

    If the parameter's Force Restart value is Yes, the change takes effect only after all nodes in the cluster are restarted. Verify that the restart will not affect your services before proceeding. For PolarDB for MySQL 8.0, set innodb_fast_startup to ON to speed up the restart.

    Save changes

Export and apply parameter templates

After configuring parameters, you can export the current settings as a reusable template and apply it to other clusters in the same region.

Export the current settings as a template

  1. Follow steps 1–4 in Modify parameters to navigate to the Parameters page.

  2. Click Export as Template.

    To include specific changes in the template, modify the parameters first, then export. The exported template includes both parameters you manually modified and parameters that the cluster adjusted automatically during operation.
  3. In the Apply Template dialog box, configure the template.

    ParameterDescription
    Template NameMust contain only letters, digits, and underscores (_); must start with a letter; 8–64 characters in length
    DescriptionUp to 200 characters
  4. Click OK.

Apply a template to a cluster

  1. Follow steps 1–4 in Modify parameters to navigate to the Parameters page.

  2. Click Apply Template.

  3. In the Apply Template dialog box, select the template name and click OK. The dialog shows the number of parameters affected, whether a restart is required, and the last update time of the template.

    Important

    If the template requires a restart, apply it during off-peak hours and make sure your application can automatically reconnect to the cluster after the restart.

You can also apply templates from the Parameter Templates page. For details, see Apply a parameter template.

Compare parameter settings across nodes

Use the parameter comparison feature to identify differences between nodes — for example, after a failover or when troubleshooting inconsistent behavior.

  1. Log on to the PolarDB console.

  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Parameters.

  5. Click Compare.

    Compare parameters

  6. Select the nodes to compare. The comparison results display immediately.

API reference

OperationDescription
DescribeDBClusterParametersQueries cluster parameters
ModifyDBClusterParametersModifies cluster parameters
ModifyDBClusterAndNodesParametersModifies cluster parameters and applies them to specified nodes
ModifyDBNodesParametersModifies the parameters of a single node and applies them to the node
DescribeParameterTemplatesQueries the default parameters in a parameter template