v.19.3Improvements

Added Info About the Replicated_can_become_leader Setting to System.replicas and Add Logging If the Replica Won't Try to Become Leader

Added info about the replicated_can_become_leader setting to system.replicas and add logging if the replica won't try to become leader. #4379 (Alex Zatelepin)
Added information about the replicated_can_become_leader setting to the system.replicas table and introduced logging when a replica does not attempt to become the leader.

Why it matters

This feature enhances observability and troubleshooting of replicated tables by exposing the replicated_can_become_leader setting directly in the system tables. It helps users understand which replicas are eligible to become leaders and provides logs when leadership elections are skipped, improving cluster management and debugging.

How to use it

Users can query the system.replicas table to see the new replicated_can_become_leader column. Additionally, relevant logs will be generated automatically when a replica refrains from trying to become leader, requiring no additional configuration.