写点什么

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:25961

评论

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

司库管理研修班:权威师资齐聚,共探数智转型之道

用友智能财务

AI 财经 会计

懒猫微服的 AI 硬件要来了,好期待

玄兴梦影

AI 私有云 NAS 懒猫微服 AI新品

智慧人大系统(源码+文档+讲解+演示)

深圳亥时科技

群晖科技与东芝签署谅解备忘录,加强战略合作伙伴关系

新消费日报

当AI渗透每个角落,效能管理如何变化?

思码逸研发效能

AI 研发管理 研发效能 研发效能管理 AI Agents

如何选择适合自己的LED显示屏:参数与选购指南

Dylan

LED显示屏 全彩LED显示屏 户外LED显示屏 led显示屏厂家 户内led显示屏

大模型推理框架RTP-LLM Embedding技术揭秘

阿里技术

AI数字人的开发流程

北京木奇移动技术有限公司

AI智能体 软件外包公司 AI数字人

AI数字人的分类及特点

北京木奇移动技术有限公司

AI智能体 软件外包公司 AI数字人

Sections 多列混排

狼哥

HarmonyOS NEXT

金三银四快过去一半了,是时候加把劲了

王中阳Go

Go 金三银四 小鹅通

档案管理系统(源码+文档+讲解+演示)

深圳亥时科技

Shopify API对接的部署

北京木奇移动技术有限公司

跨境电商 软件外包公司 shopify开发

SvelteKit 最新中文文档教程(6)—— 状态管理

冴羽

vue.js 前端 React Svelte SvelteKit

轻松获取海量数据?揭秘AI训练背后的两大神器!

陈老老老板

NocoBase 本周更新汇总:优化表格区块的列和操作

NocoBase

开源 低代码 零代码 开发工具 版本更新

烧掉 700 亿学费后,中国企业终于懂了:换软件才是真正的省钱

IPD产品研发管理

软件 信创 国产化替代 国产化软件

通用人工智能(AGI)在元宇宙中扮演什么角色?

PowerVerse

元宇宙 AGI #AIGC

通过 INFINI Console 集中管理极限网关配置

极限实验室

console Gateway

MHP和慕尼黑LMU发布《2025年工业4.0晴雨表》

财见

面试场景题:如何设计一个抢红包随机算法

卷福同学

Java 面试 算法题

仓储管理系统(源码+文档+讲解+演示)

深圳亥时科技

Hologres Dynamic Table快速入门

阿里云大数据AI技术

云计算 大数据 hologres 动态表

淘车车:全面接入DeepSeek并上线场景化应用,推动二手车行业数智化转型

极客天地

听见未来,Audio+AI | GAS 2025完整议程揭晓!

RTE开发者社区

得物技术部算法项目管理实践分享

得物技术

#项目管理

使用腾讯云HAI来打通DeepSeek的任督二脉

穿过生命散发芬芳

AI 产品 DeepSeek HAI应用服务器

智能费用审核平台:赋能千行百业,重塑财务审查新生态

中烟创新

两连发!文心大模型4.5及X1,上线千帆!

百度Geek说

百度 #大模型

如何在Java程序中使用泛型

码界行者

Java泛型

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