写点什么

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

评论

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

react源码分析:实现react时间分片

flyzz177

React

Hive 与 HBase 之间的区别和联系

千锋IT教育

融云 IM 和 RTC 服务,「助攻」智能物流等客户打通链路、完善生态

融云 RongCloud

IM RTC

一文搞懂Go1.18泛型新特性

闫同学

Go 11月月更

知乎好物推荐文能不能赚钱:如何撰写好物推荐文

石头IT视角

聊聊如何让办公网络直连Kubernetes集群PodIP/ClusterIP/Service DNS等

大卡尔

#Kubernetes# 工程效能 11月月更

聊聊mybatis的反射之对象工厂

急需上岸的小谢

11月月更

什么是容器编排及编排的优点

穿过生命散发芬芳

容器编排 11月月更

性能测试知识科普(五):能力分层

老张

性能测试 岗位模型

CleanMyMac X2023苹果电脑系统清理维护软件

茶色酒

CleanMyMac X2023

Alien Skin Exposure2023独立编辑器和PS/LR插件

茶色酒

Alien Skin Exposure

【Node.JS】写入文件内容

坚毅的小解同志

node.js 11月月更

java并发编程挑战与原理剖析

想要飞的猪

synchronized volatile原理

Spring事务的底层原理

千锋IT教育

浅谈Go语言反射

闫同学

Go 反射 11月月更

API关键技术——身份认证

阿泽🧸

11月月更 API安全

【web 开发基础】PHP 自定义常规函数的声明及应用 (30)

迷彩

函数 PHP基础 11月月更 自定义函数 常规参数函数

从React源码来学hooks是不是更香呢

goClient1992

React

react源码分析:babel如何解析jsx

flyzz177

React

支持向量机-线性SVM用于分类的原理

烧灯续昼2002

Python 机器学习 算法 sklearn 11月月更

聊聊Mybatis的反射之ObjectWrapper

急需上岸的小谢

11月月更

极客时间运维进阶训练营第四周作业

Starry

C++学习---类型萃取---std::integral_constant

桑榆

C++ STL 11月月更

从React源码角度看useCallback,useMemo,useContext

goClient1992

React

【愚公系列】2022年11月 微信小程序-页面生命周期

愚公搬代码

11月月更

融云推送服务:独享推送通道,更高并发能力,应用运营必备

融云 RongCloud

互联网 消息

Java反射(完)类加载和反射获取信息

浅辄

Java 反射 11月月更

聊聊mybatis的反射之Invoker模块

急需上岸的小谢

11月月更

2022-11-22:小美将要期中考试,有n道题,对于第i道题, 小美有pi的几率做对,获得ai的分值,还有(1-pi)的概率做错,得0分。 小美总分是每道题获得的分数。 小美不甘于此,决定突击复习,

福大大架构师每日一题

算法 rust 福大大

从 Redux 的困扰到如何技术选型

光毅

JavaScript React Redux

从React源码分析看useEffect

goClient1992

React

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