写点什么

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

评论

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

详解GuassDB数据库权限命令:GRANT和REVOKE

华为云开发者联盟

数据库 后端 华为云 华为云开发者联盟

智能问答技术在百度搜索中的应用

百度Geek说

百度搜索 智能问答 企业号10月PK榜

KaiwuDB 荣获“2023 IDC 中国可持续发展先锋案例”

KaiwuDB

从图像生成到分类的深度学习策略

百度开发者中心

人工智能 深度学习 大模型 图像生成

焕新升级!新一代云原生可观测平台

华为云开发者联盟

云原生 后端 华为云 华为云开发者联盟 华为云CCE容器服

携程商旅发布“全球影响力计划”

携程商旅

VMware Workstation 17安装教程之轻松构建虚拟机

小齐写代码

硬件、数据、模型优化与分布式训练的实践

百度开发者中心

大模型 LLM LLMOps

厦门理工计算机与信息工程学院获“火焰杯”软件测试赛全国奖项

测试人

软件测试

深度学习预训练模型的突破与发展

百度开发者中心

模型训练 大模型 深度学习‘’ LLM

AIGC加速迭代,云栖大会视频云「媒体服务」专场与你共话云智深度融合

阿里云CloudImagine

云计算 视频云 云栖大会

LeetCode题解:剑指 Offer 39. 数组中出现次数超过一半的数字,摩尔投票,JavaScript,详细注释

Lee Chen

JavaScript LeetCode

带着问题去分析:Spring Bean 生命周期 | 京东物流技术团队

京东科技开发者

spring 生命周期 @Bean 企业号10月PK榜

火山引擎DataLeap背后的支持者 - 工作流编排调度系统FlowX

字节跳动数据平台

大数据 数据中台 数据安全 数据研发 企业号10月PK榜

大模型与Prompt模板全面升级

百度开发者中心

深度学习 大模型 LLM

2023 云栖大会 | 「动手实践」基于阿里云构建博学谷平台实时湖仓

Apache Flink

大数据 flink 实时计算

限时领票|走进 2023 · 云栖大会,看大咖对话开源

Apache Flink

大数据 flink 实时计算

建立性能基线的实践方法

老张

性能测试 性能基线

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