Skip to content

Commit 699b1e5

Browse files
authored
Merge pull request #7160 from xiang90/snapshotcount
etcdserver: increase snapshot to 100,000
2 parents 26d9926 + c5a9d54 commit 699b1e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Documentation/op-guide/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To start etcd automatically using custom settings at startup in Linux, using a [
2828

2929
### --snapshot-count
3030
+ Number of committed transactions to trigger a snapshot to disk.
31-
+ default: "10000"
31+
+ default: "100000"
3232
+ env variable: ETCD_SNAPSHOT_COUNT
3333

3434
### --heartbeat-interval

etcdmain/help.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ member flags:
4242
path to the data directory.
4343
--wal-dir ''
4444
path to the dedicated wal directory.
45-
--snapshot-count '10000'
45+
--snapshot-count '100000'
4646
number of committed transactions to trigger a snapshot to disk.
4747
--heartbeat-interval '100'
4848
time (in milliseconds) of a heartbeat interval.

etcdserver/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import (
6161
)
6262

6363
const (
64-
DefaultSnapCount = 10000
64+
DefaultSnapCount = 100000
6565

6666
StoreClusterPrefix = "/0"
6767
StoreKeysPrefix = "/1"

0 commit comments

Comments
 (0)