From 8b7c600009309c427dc4257b3ea176535baa1cd0 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Mon, 13 Jul 2015 16:35:30 -0700 Subject: [PATCH] docs: update tuning.md to match today's situation 1. etcd requires that election-timeout >= 5 * heartbeat-interval 2. etcd doesn't have flag -snapshot --- Documentation/tuning.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Documentation/tuning.md b/Documentation/tuning.md index bd51a0148..014d3a70f 100644 --- a/Documentation/tuning.md +++ b/Documentation/tuning.md @@ -25,8 +25,8 @@ The election timeout should be set based on the heartbeat interval and your netw Election timeouts should be at least 10 times your ping time so it can account for variance in your network. For example, if the ping time between your nodes is 10ms then you should have at least a 100ms election timeout. -You should also set your election timeout to at least 4 to 5 times your heartbeat interval to account for variance in leader replication. -For a heartbeat interval of 50ms you should set your election timeout to at least 200ms - 250ms. +You should also set your election timeout to at least 5 to 10 times your heartbeat interval to account for variance in leader replication. +For a heartbeat interval of 50ms you should set your election timeout to at least 250ms - 500ms. You can override the default values on the command line: @@ -62,13 +62,3 @@ $ etcd -snapshot-count=5000 # Environment variables: $ ETCD_SNAPSHOT_COUNT=5000 etcd ``` - -You can also disable snapshotting by adding the following to your command line: - -```sh -# Command line arguments: -$ etcd -snapshot false - -# Environment variables: -$ ETCD_SNAPSHOT=false etcd -```