2014-01-28 03:03:01 +04:00
|
|
|
package config
|
2013-10-12 10:28:46 +04:00
|
|
|
|
2013-12-08 01:35:31 +04:00
|
|
|
const (
|
2014-01-14 20:53:02 +04:00
|
|
|
// The amount of time (in ms) to elapse without a heartbeat before becoming a candidate
|
|
|
|
defaultElectionTimeout = 200
|
2013-12-10 23:13:37 +04:00
|
|
|
|
2014-01-14 20:53:02 +04:00
|
|
|
// The frequency (in ms) by which heartbeats are sent to followers.
|
2014-02-17 08:19:31 +04:00
|
|
|
defaultHeartbeatInterval = 50
|
2013-10-12 10:28:46 +04:00
|
|
|
)
|