写点什么

mongos-sharding 连接池配置

  • 2020-03-04
  • 本文字数:880 字

    阅读完需:约 3 分钟

mongos-sharding连接池配置

ShardingTaskExecutorPoolMaxSize

Maximum number of outbound connections each TaskExecutor connection pool can open to any given mongod instance. The maximum possible connections to any given host across all TaskExecutor pools is
复制代码


连接池最大大小,默认没有限制


对于 mongod 最大连接控制:ShardingTaskExecutorPoolMaxSize * taskExecutorPoolSize

ShardingTaskExecutorPoolMinSize

Minimum number of outbound connections each TaskExecutor connection pool can open to any given mongod instance.
复制代码


连接池最小大小,默认为 1

taskExecutorPoolSize

The number of Task Executor connection pools to use for a given mongos. The parameter has a minimum value of 4 and a maximum value of 64.
复制代码


任务池大小,默认是 cpu 核数

ShardingTaskExecutorPoolMaxConnecting

Maximum number of simultaneous initiating connections (including pending connections in setup/refresh state) each TaskExecutor connection pool can have to a mongod instance. You can set this parameter to control the rate at which mongos adds connections to a mongod instance.
复制代码


并发进行初始连接的数量,默认没有限制,该值保持在 ShardingTaskExecutorPoolMaxSize 以下

ShardingTaskExecutorPoolRefreshRequirementMS

Maximum time the mongos waits before attempting to heartbeat a resting connection in the pool.
复制代码


连接池保活心跳的间隔时间,默认 1 分钟

ShardingTaskExecutorPoolRefreshTimeoutMS

Maximum time the mongos waits for a heartbeat before timing out the heartbeat
复制代码


连接池保活心跳的超时时间,默认 20 秒

ShardingTaskExecutorPoolHostTimeoutMS

Maximum time that mongos goes without communication to a host before mongos drops all connections to the host.
复制代码


空闲时间阈值,默认 30 秒,当 mongos 与 mongod 在指定时间内没有交互时会释放连接。


参考文档


https://docs.mongodb.com/v3.4/reference/parameters/#param.ShardingTaskExecutorPoolMaxSize


作者简介


华为云专家唐章卓


2020-03-04 14:25877

评论

发布
暂无评论
发现更多内容

持续测试新范式:拨压测一体化

阿里巴巴云原生

阿里云 云原生 压测 拨测

简单聊聊低代码

互联网工科生

低代码 数字化

SRM供应商招采系统(源码)

金陵老街

如何有效改进erp管理系统?erp管理系统改进建议方向

优秀

ERP管理系统

哪家强?Bitget Wallet vs Metamask 从安全性能角度全方位 PK

股市老人

文心一言 VS 讯飞星火 VS chatgpt (111)-- 算法导论10.2 2题

福大大架构师每日一题

福大大架构师每日一题

算启新程 智享未来,英特尔携中国移动为行业数字化转型提供新动能

E科讯

基于Vue构建的快速开发框架

树上有只程序猿

Vue 低代码

云桌面如何部署?云桌面系统方案部署详细教程

青椒云云电脑

云桌面 云桌面系统

ETL数据转换方式有哪些?

RestCloud

数据同步 ETL

​左手 Serverless,右手 AI,7 年躬身的古籍修复之路

阿里巴巴云原生

阿里云 Serverless 云原生

LeetCode题解:1486. 数组异或操作,模拟,JavaScript,详细注释

Lee Chen

邀你见证一本思维小册子的诞生:《豆哥宝典:思维模型》

豆哥

AI 思维模型 GPT 宝典

2023年10款好用的AI生成PPT软件盘点,干货建议收藏!

彭宏豪95

效率 软件 职场 PPT AIGC

Zilliz X Dify.AI ,快速打造知识库 AI 应用

Zilliz

大模型 Zilliz LLM zillizcloud

语音识别技术的优化与发展趋势

数据堂

语音识别技术:从传统到现代的飞跃

数据堂

数字时代的自我呈现:探索个人形象打造的创新工具——FaceChain深度学习模型工具

汀丶人工智能

人工智能 计算机视觉 图像生成

回归营销初心,2023金投赏鲸鸿动能专场聚焦品牌重塑

最新动态

什么是多云? 为什么我们需要多云可观测性 (Observability)?

NineData

多云服务 多云架构 多云管理 多云 多云多源

披荆斩棘的芒果 TV:基于 StarRocks 的云原生湖仓架构升级

StarRocks

Python 实训教学,更便捷的学生邀请及内容分发|ModelWhale 版本更新

ModelWhale

人工智能 数据分析 在线编程 高等教育 云课堂

mongos-sharding连接池配置_服务革新_华为云开发者联盟_InfoQ精选文章