v.24.3Improvement
Support for merge attribute in config substitutions for subtrees
Now it's possible to specify the attributemerge="true"in config substitutions for subtrees<include from_zk="/path" merge="true">. In case this attribute specified, clickhouse will merge subtree with existing configuration, otherwise default behavior is append new content to configuration. #61299 (alesapin).
Why it matters
This feature addresses the limitation where including configuration subtrees from ZooKeeper would only append new content, potentially causing duplication or conflicts. By enabling merging, users can combine configurations more seamlessly, improving configuration management and consistency.How to use it
To enable this feature, specifymerge="true" in the <include> element when loading configuration from ZooKeeper, for example: <include from_zk="/path" merge="true">This will merge the loaded subtree with the existing configuration instead of simply appending it.