Paragrf opened a new pull request, #396:
URL: https://github.com/apache/kvrocks-controller/pull/396

   **Background**
   To enhance the stability of the Kvrocks system, we have implemented an HA 
(High Availability) system based on multi-controller consensus.
   
   **Key Changes** 
   
   - Voting mechanism: Each controller independently probes every Kvrocks node. 
Before promoting a new master, the leader collects unanimous votes from all 
peer controllers via POST /internal/vote. A single NO (or unreachable peer with 
a live lease) blocks the failover.
   
   - Peer discovery: Controllers register themselves in the store with a 
heartbeat. ListActivePeers returns peers whose leases are still alive. Expired 
peers are excluded from quorum rather than blocking failover.
   
   - Observability:Structured zap logging at every vote decision point (round 
start, per-peer vote with diagnostic fields, round outcome). Seven new 
Prometheus metrics track failover proposals, completions, blocks, vote round 
duration, peer count, per-node failure counts, and individual probe failures.
   
   **Related Issues** 
   #392 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to