Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go mongo driver连接池占满 #1052

Closed
fuziye01 opened this issue Jun 16, 2021 · 0 comments
Closed

go mongo driver连接池占满 #1052

fuziye01 opened this issue Jun 16, 2021 · 0 comments

Comments

@fuziye01
Copy link
Contributor

fuziye01 commented Jun 16, 2021

问题描述:
在并发量高的情况下,会报如下错误
create service failed {"error": "timed out while checking out a connection from connection pool}

问题原因:
原因是go mongo driver的默认最大连接数量为100

解决方法:
新增配置项registry.mongo.cluster.poolSize,把该参数设置为可以配置的,默认设置为1000

fuziye01 added a commit to fuziye01/servicecomb-service-center that referenced this issue Jun 16, 2021
fuziye01 added a commit to fuziye01/servicecomb-service-center that referenced this issue Jun 16, 2021
fuziye01 added a commit to fuziye01/servicecomb-service-center that referenced this issue Jun 16, 2021
fuziye01 added a commit to fuziye01/servicecomb-service-center that referenced this issue Jun 16, 2021
robotLJW added a commit that referenced this issue Jun 16, 2021
fixbugs: mongo connection pool is full (#1052)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants