Browse Source

Merge pull request #7160 from xiang90/snapshotcount

etcdserver: increase snapshot to 100,000
Xiang Li 9 years ago
parent
commit
699b1e5b3a
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Documentation/op-guide/configuration.md
  2. 1 1
      etcdmain/help.go
  3. 1 1
      etcdserver/server.go

+ 1 - 1
Documentation/op-guide/configuration.md

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

+ 1 - 1
etcdmain/help.go

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

+ 1 - 1
etcdserver/server.go

@@ -61,7 +61,7 @@ import (
 )
 
 const (
-	DefaultSnapCount = 10000
+	DefaultSnapCount = 100000
 
 	StoreClusterPrefix = "/0"
 	StoreKeysPrefix    = "/1"