baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.86k stars 865 forks source link

Node Identity #396

Open cgetzen opened 1 year ago

cgetzen commented 1 year ago

Hello,

I cannot find any documentation about a node's identity. I'm curious if it's currently based off of its IP address, and if it's possible to pass an identity to the node instead. This would allow us to use dynamic IPs while maintaining identities across restarts. This is common in kubernetes statefulsets, where maintaining the same identity would allow restarts to become healthy faster.

Thanks!