v.23.10Improvement

Add hostname_levenshtein_distance load balancing mode

Add load balancing mode hostname_levenshtein_distance. #54826 (JackyWoo).
Introduces a new load balancing mode hostname_levenshtein_distance for ClickHouse.

Why it matters

This feature adds a load balancing mode that distributes queries based on the Levenshtein distance between hostnames. It helps optimize query routing and resource utilization by favoring hosts with hostnames closer to the client's hostname, improving overall load distribution and potentially reducing latency.

How to use it

To enable this feature, set the load balancing mode to hostname_levenshtein_distance in your ClickHouse client or server configuration where load balancing is configured.