File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ HEARTBEAT_INTERVAL=6000
229
229
ELECTION_TIMEOUT=30000
230
230
# 触发快照到磁盘的已提交事务数
231
231
SNAPSHOT_COUNT=5000
232
+ # 高并发场景调大并发流数,默认1024
233
+ MAX_CONCURRENT_STREAMS=2048
232
234
# 在一个小时内为mvcc键值存储的自动压实保留。0表示禁用自动压缩。
233
235
AUTO_COMPACTION_RETENTION=1
234
236
# 服务器将接受的最大客户端请求大小(字节)
@@ -1597,6 +1599,7 @@ ETCD_OPTS="--name={{ ansible_hostname }} \\
1597
1599
--heartbeat-interval=${HEARTBEAT_INTERVAL} \\
1598
1600
--election-timeout=${ELECTION_TIMEOUT} \\
1599
1601
--snapshot-count=${SNAPSHOT_COUNT} \\
1602
+ --max-concurrent-streams=${MAX_CONCURRENT_STREAMS} \\
1600
1603
--auto-compaction-retention=${AUTO_COMPACTION_RETENTION} \\
1601
1604
--max-request-bytes=${MAX_REQUEST_BYTES} \\
1602
1605
--quota-backend-bytes=${QUOTA_BACKEND_BYTES} \\
You can’t perform that action at this time.
0 commit comments