Skip to content

Commit

Permalink
Merge pull request #7160 from xiang90/snapshotcount
Browse files Browse the repository at this point in the history
etcdserver: increase snapshot to 100,000
  • Loading branch information
xiang90 committed Jan 15, 2017
2 parents 26d9926 + c5a9d54 commit 699b1e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/op-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To start etcd automatically using custom settings at startup in Linux, using a [

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

### --heartbeat-interval
Expand Down
2 changes: 1 addition & 1 deletion etcdmain/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ member flags:
path to the data directory.
--wal-dir ''
path to the dedicated wal directory.
--snapshot-count '10000'
--snapshot-count '100000'
number of committed transactions to trigger a snapshot to disk.
--heartbeat-interval '100'
time (in milliseconds) of a heartbeat interval.
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import (
)

const (
DefaultSnapCount = 10000
DefaultSnapCount = 100000

StoreClusterPrefix = "/0"
StoreKeysPrefix = "/1"
Expand Down

0 comments on commit 699b1e5

Please sign in to comment.