mirror of https://github.com/hashicorp/consul
Increases RPC hold timeout for new default timing.
Rather than scale this we just bump it up a bit. It'll be on the edge in the lower-performance default mode, and will have plenty of margin in the high-performance mode. This seems like a reasonable compromise to keep the logic here simple vs. scaling, and seems inline with the expectations of the different modes of operation.pull/2303/head
parent
c432aa540d
commit
679b3c0c6b
|
@ -318,8 +318,11 @@ func DefaultConfig() *Config {
|
|||
CoordinateUpdateBatchSize: 128,
|
||||
CoordinateUpdateMaxBatches: 5,
|
||||
|
||||
// Hold an RPC for up to 5 seconds by default
|
||||
RPCHoldTimeout: 5 * time.Second,
|
||||
// This holds RPCs during leader elections. For the default Raft
|
||||
// config the election timeout is 5 seconds, so we set this a
|
||||
// bit longer to try to cover that period. This should be more
|
||||
// than enough when running in the high performance mode.
|
||||
RPCHoldTimeout: 7 * time.Second,
|
||||
}
|
||||
|
||||
// Increase our reap interval to 3 days instead of 24h.
|
||||
|
|
Loading…
Reference in New Issue