bakwc / PySyncObj

A library for replicating your python class between multiple servers, based on raft protocol
MIT License
706 stars 113 forks source link

Raft heartbeat timeout #148

Closed cobolbaby closed 3 years ago

cobolbaby commented 3 years ago

Raft leader election often relies on periodic heartbeat detection. How often does pysyncobj perform heartbeat detection by default?

bakwc commented 3 years ago

From 0.4s to 1.4s. There is config options raftMinTimeout and raftMaxTimeout for it.

cobolbaby commented 3 years ago

Got it.