v.23.4Improvement

Add Support for {server_uuid} Macro to Identify Replicas in Autoscaled Clusters

Add support for {server_uuid} macro. It is useful for identifying replicas in autoscaled clusters when new replicas are constantly added and removed in runtime. This closes #48554. #48563 (Alexey Milovidov).
Added support for the {server_uuid} macro to uniquely identify replicas in autoscaled ClickHouse clusters.

Why it matters

This feature addresses the challenge of distinguishing replicas in environments where new replicas are frequently added and removed at runtime. Using the {server_uuid} macro helps in reliably identifying each replica despite dynamic cluster changes, improving management and monitoring of autoscaled clusters.

How to use it

Users can include the {server_uuid} macro in their configuration files or queries where replica identification is required. This macro will be automatically replaced with the unique UUID of the server replica at runtime.