etcdserver/*: rollback default settings

This commit is contained in:
Viacheslav Biriukov 2019-01-07 14:27:19 +00:00 committed by Joe Betz
parent 5435e7686a
commit 91efa67cb1
No known key found for this signature in database
GPG Key ID: 4930C680B6E0DDB8

View File

@ -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 {