Skip to content

Commit ff35a7e

Browse files
committed
update etcd
1 parent 2000bee commit ff35a7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

k8s-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ HEARTBEAT_INTERVAL=6000
229229
ELECTION_TIMEOUT=30000
230230
# 触发快照到磁盘的已提交事务数
231231
SNAPSHOT_COUNT=5000
232+
# 高并发场景调大并发流数,默认1024
233+
MAX_CONCURRENT_STREAMS=2048
232234
# 在一个小时内为mvcc键值存储的自动压实保留。0表示禁用自动压缩。
233235
AUTO_COMPACTION_RETENTION=1
234236
# 服务器将接受的最大客户端请求大小(字节)
@@ -1597,6 +1599,7 @@ ETCD_OPTS="--name={{ ansible_hostname }} \\
15971599
--heartbeat-interval=${HEARTBEAT_INTERVAL} \\
15981600
--election-timeout=${ELECTION_TIMEOUT} \\
15991601
--snapshot-count=${SNAPSHOT_COUNT} \\
1602+
--max-concurrent-streams=${MAX_CONCURRENT_STREAMS} \\
16001603
--auto-compaction-retention=${AUTO_COMPACTION_RETENTION} \\
16011604
--max-request-bytes=${MAX_REQUEST_BYTES} \\
16021605
--quota-backend-bytes=${QUOTA_BACKEND_BYTES} \\

0 commit comments

Comments
 (0)