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).
Added the function zookeeperSessionUptime() which returns the uptime of the current ZooKeeper session in seconds.

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 calling zookeeperSessionUptime() in a SELECT query to retrieve the current ZooKeeper session uptime in seconds.