mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: increase snapshot to 100,000
Keep more wal entries in memory for fast follower recovery. 10,000 was a too small number that triggers quite a few snapshots. ZK proves that 100,000 is a reasonable number for even old less prowerful machines. Eventually we should provide both count and max memory (for large entries).
This commit is contained in:
parent
4730bddea7
commit
c5a9d54835
@ -28,7 +28,7 @@ To start etcd automatically using custom settings at startup in Linux, using a [
|
|||||||
|
|
||||||
### --snapshot-count
|
### --snapshot-count
|
||||||
+ Number of committed transactions to trigger a snapshot to disk.
|
+ Number of committed transactions to trigger a snapshot to disk.
|
||||||
+ default: "10000"
|
+ default: "100000"
|
||||||
+ env variable: ETCD_SNAPSHOT_COUNT
|
+ env variable: ETCD_SNAPSHOT_COUNT
|
||||||
|
|
||||||
### --heartbeat-interval
|
### --heartbeat-interval
|
||||||
|
@ -42,7 +42,7 @@ member flags:
|
|||||||
path to the data directory.
|
path to the data directory.
|
||||||
--wal-dir ''
|
--wal-dir ''
|
||||||
path to the dedicated wal directory.
|
path to the dedicated wal directory.
|
||||||
--snapshot-count '10000'
|
--snapshot-count '100000'
|
||||||
number of committed transactions to trigger a snapshot to disk.
|
number of committed transactions to trigger a snapshot to disk.
|
||||||
--heartbeat-interval '100'
|
--heartbeat-interval '100'
|
||||||
time (in milliseconds) of a heartbeat interval.
|
time (in milliseconds) of a heartbeat interval.
|
||||||
|
@ -61,7 +61,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultSnapCount = 10000
|
DefaultSnapCount = 100000
|
||||||
|
|
||||||
StoreClusterPrefix = "/0"
|
StoreClusterPrefix = "/0"
|
||||||
StoreKeysPrefix = "/1"
|
StoreKeysPrefix = "/1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user