v.21.11Improvements

Add Memory Peak Usage Tracing to system.trace_log

Add ability to trace peak memory usage (with new trace_type in system.trace_log - MemoryPeak). #29858 (Azat Khuzhin).
Added the ability to trace peak memory usage in ClickHouse via a new trace type MemoryPeak in the system.trace_log table.

Why it matters

This feature enables users to monitor and analyze the maximum memory consumption during query execution, helping to identify queries or operations that consume excessive memory and optimize resource usage.

How to use it

Users can enable tracing of peak memory usage by querying the system.trace_log table and filtering for the trace type 'MemoryPeak'. This allows inspection of peak memory metrics associated with queries.