mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: increase sender buffer size
The buffer size is set big enough to buffer all messages generated in one second as a follower in good path.
This commit is contained in:
parent
6bfa5d409e
commit
b24d546bd0
@ -32,7 +32,11 @@ import (
|
||||
|
||||
const (
|
||||
connPerSender = 4
|
||||
senderBufSize = connPerSender * 4
|
||||
// senderBufSize is the size of sender buffer, which helps hold the
|
||||
// temporary network latency.
|
||||
// The size ensures that sender does not drop messages when the network
|
||||
// is out of work for less than 1 second in good path.
|
||||
senderBufSize = 64
|
||||
|
||||
appRespBatchMs = 50
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user