quorum/raft/constants.go

36 lines
660 B
Go
Raw Normal View History

package raft
import (
etcdRaft "github.com/coreos/etcd/raft"
)
const (
2020-05-11 13:15:27 -07:00
//protocolName = "raft"
//protocolVersion uint64 = 0x01
2020-05-11 13:15:27 -07:00
//raftMsg = 0x00
2020-05-11 13:15:27 -07:00
minterRole = etcdRaft.LEADER
//verifierRole = etcdRaft.NOT_LEADER
// Raft's ticker interval
tickerMS = 100
// We use a bounded channel of constant size buffering incoming messages
2020-05-11 13:15:27 -07:00
//msgChanSize = 1000
// Snapshot after this many raft messages
//
// TODO: measure and get this as low as possible without affecting performance
//
snapshotPeriod = 250
2020-05-11 13:15:27 -07:00
//peerUrlKeyPrefix = "peerUrl-"
2017-08-28 14:43:44 -07:00
chainExtensionMessage = "Successfully extended chain"
)
var (
appliedDbKey = []byte("applied")
)