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

框架启动时,会初始化大量的db连接,感觉设计不太合理 #21

Closed
yyz26371945 opened this issue Apr 18, 2017 · 3 comments
Labels

Comments

@yyz26371945
Copy link
Contributor

框架启动时,会自动初始化大量db连接,数目=worker+task_worker的总和,这样会造成一个问题,当大批量机器部署时,框架启动时很容易就超过数据库配置的默认最大连接数,导致在一段时间内不会接受新的连接,这块是不是能再优化下?

@JanHuang
Copy link
Member

恩,其实也是一个思考的点。回头我可以思考一下,您那边有更好的想法?

@yyz26371945
Copy link
Contributor Author

这个我刚刚也想了好久,目前想到的就是连接池的方案,但具体实现还没有细想

@JanHuang
Copy link
Member

但其实连接池也是需要初始化一批连接,不过可能管理起来和操作起来会相对灵活。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants