v.21.11New Features
Added zookeeperSessionUptime() Function to Retrieve ZooKeeper Session Uptime
Added function zookeeperSessionUptime() which returns uptime of current ZooKeeper session in seconds. #28983 (tavplubix).Why it matters
This feature enables users to monitor the duration of their active ZooKeeper session, helping to track session stability and diagnose connection issues with ZooKeeper within ClickHouse.How to use it
You can use the function by simply callingzookeeperSessionUptime() in a SELECT query to retrieve the current ZooKeeper session uptime in seconds.