mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver/*: rollback default settings
This commit is contained in:
parent
5435e7686a
commit
91efa67cb1
@ -67,14 +67,14 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultSnapshotCount = 10
|
||||
DefaultSnapshotCount = 100000
|
||||
|
||||
// DefaultSnapshotCatchUpEntries is the number of entries for a slow follower
|
||||
// to catch-up after compacting the raft storage entries.
|
||||
// We expect the follower has a millisecond level latency with the leader.
|
||||
// The max throughput is around 10K. Keep a 5K entries is enough for helping
|
||||
// follower to catch up.
|
||||
DefaultSnapshotCatchUpEntries uint64 = 10
|
||||
DefaultSnapshotCatchUpEntries uint64 = 5000
|
||||
|
||||
StoreClusterPrefix = "/0"
|
||||
StoreKeysPrefix = "/1"
|
||||
@ -416,11 +416,6 @@ func NewServer(cfg ServerConfig) (srv *EtcdServer, err error) {
|
||||
}
|
||||
|
||||
// Find a snapshot to start/restart a raft node
|
||||
var (
|
||||
snapshot *raftpb.Snapshot
|
||||
err error
|
||||
)
|
||||
|
||||
for i := uint64(0); ; i++ {
|
||||
snapshot, err = ss.LoadIndex(i)
|
||||
if err != nil && err != snap.ErrNoSnapshot {
|
||||
|
Loading…
x
Reference in New Issue
Block a user