All Products
Search
Document Center

ApsaraDB for ClickHouse:Configure config.xml parameters

Last Updated:Mar 28, 2026

ApsaraDB for ClickHouse stores global cluster settings in two configuration files: config.xml and user.xml. This topic explains how to view and modify config.xml parameters from the console, track change history, and revert unsubmitted changes.

To modify user.xml parameters instead, use the SET GLOBAL SQL command — changes take effect immediately without a restart. For details, see Modify user.xml parameters.

Note

XML mode and modification history are available only on Community Edition clusters created after December 1, 2021. Enterprise Edition clusters do not support XML mode.

Potential impacts

  • While the cluster is in the Changing Configuration or Restarting state, you can only view cluster information. Operations such as upgrades, scale-outs, and scale-ins are unavailable.

  • If any modified parameters require a restart to take effect, the cluster restarts automatically after you submit the changes. Schedule this operation during off-peak hours to avoid service disruptions.

Modify parameters

Important

For guidance on the prometheus.port and text_log parameters, see Important parameters.

Enterprise Edition

  1. Log on to the ApsaraDB for ClickHouse console.

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

  3. On the Clusters page, click the Enterprise Edition Clusters tab, and then click the cluster ID.

  4. In the left navigation pane, click Parameter Management.

  5. In the Parameter Value column, click the edit icon 参数编辑按钮. Enter a value within the specified range, then click OK.

  6. After modifying parameters, click Submit Parameters in the upper-right corner.

  7. In the Save Settings dialog box, review the changes, enter a reason for the change, and click OK.

Important

If any submitted parameters require a restart, ClickHouse restarts the cluster automatically. Confirm that a restart will not affect your services before proceeding.

After submission, the system validates all parameter values. If a value is invalid, an Error message appears. If the ErrorCode is 102, the value is out of range — return to the previous step, enter a value within the Input Range, and submit again.

Community Edition

  1. Log on to the ApsaraDB for ClickHouse console.

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

  3. On the Clusters page, click the Clusters of Community-compatible Edition tab, and then click the cluster ID.

  4. In the left navigation pane, click Parameter Configuration.

  5. On the Parameter Configuration page, click the Settings tab. Select Default Mode or XML Mode and modify the parameters.

    • Default mode: In the Parameter Value column, click the edit icon 参数编辑按钮. Enter a value within the specified range, then click OK.

    • XML mode: In the upper-right corner, click Modify and update the parameters.

    Important

    The prometheus.port parameter accepts only port numbers in the range 2182–3000.

  6. (Optional) In the upper-right corner, select Show Modified Parameters Only to display only parameters that have been changed but not yet submitted.

    只显示修改参数

  7. After modifying parameters, click Submit Parameters in the upper-right corner.

  8. In the Save Settings dialog box, review the changes, enter a reason for the change, and click Submit Parameters.

    Important

    - If any submitted parameters require a restart, ClickHouse restarts the cluster automatically. Confirm that a restart will not affect your services before proceeding. - In XML mode, if a value is invalid, an Error message appears. If the ErrorCode is 102, the value is out of range — return to the previous step, enter a value within the Input Range, and submit again.

Revert changes

Note
  • You can only revert changes to parameters that have not yet been submitted.

  • For Community Edition clusters in XML mode and for Enterprise Edition clusters, all changes must be reverted at once — reverting individual parameters is not supported.

To revert changes before submitting:

  • Revert a single parameter (Community Edition, default mode only): Click the Undo icon icon next to the parameter value. The parameter reverts to its previous value.

  • Revert all parameters: Click Cancel in the upper-right corner of the parameter list. All unsubmitted changes are discarded.

View modification history

Enterprise Edition

  1. Log on to the ApsaraDB for ClickHouse console.

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

  3. On the Clusters page, click the Enterprise Edition Clusters tab, and then click the cluster ID.

  4. In the left navigation pane, click Parameter Management.

  5. On the Parameter Management page, click the Change History tab.

  6. View the history using one of the following options:

    • Click Last 30 Days or Last 7 Days to filter by a preset range.

    • Select a start time and an end time to filter by a custom range.

Community Edition

  1. Log on to the ApsaraDB for ClickHouse console.

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

  3. On the Clusters page, click the Clusters of Community-compatible Edition tab, and then click the cluster ID.

  4. In the left navigation pane, click Parameter Configuration.

  5. On the Parameter Configuration page, click the Change History tab.

  6. View the history using one of the following options: image

    • Click Last 30 Days or Last 7 Days to filter by a preset range.

    • Select a start time and an end time, then click Query to filter by a custom range.

Important parameters

prometheus.port

The prometheus.port parameter accepts only port numbers in the range 2182–3000. This restriction applies in both Enterprise Edition and Community Edition.

text_log

In some cluster versions, text_log is not enabled by default, or text_log.level is set too low to capture meaningful output. Set text_log.level to the appropriate level based on your use case:

LevelDescriptionWhen to use
traceMost detailed level. Records all operations and events.Tracing execution flow during development and debugging
debugRecords function calls and variable statuses. Less verbose than trace.Debugging a program
informationRecords normal operations and status events, such as service starts and task completions.N/A
warningFlags potential issues or non-fatal errors that may require attention.Monitoring for potential issues and optimizing the system
errorRecords errors that affect system features or operations and require prompt attention.Monitoring and diagnosing errors