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

When sequelize close connection pool? #6265

Closed
furyscript opened this issue Jul 13, 2016 · 4 comments
Closed

When sequelize close connection pool? #6265

furyscript opened this issue Jul 13, 2016 · 4 comments

Comments

@furyscript
Copy link

Hi, I have an ask about sequelize pool config.

When sequelize release a connection after some user make a query in throught API? I need to call some methods after query finished or it is automatically?

@mickhansen
Copy link
Contributor

It closes after the configured idle timeout after the latest use.

@furyscript
Copy link
Author

So with this configuration pool: { max: 500, idle: 10000 }, I have max 500 contemporary connections and it closes ONE connection after 10000 ms?

@sushantdhiman
Copy link
Contributor

If any connection was not used for 10000ms pool will release it. We support debug module #6117, You can use it to check when connections are released or acquired.

@furyscript
Copy link
Author

Ok! Thanks a lot!!

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

No branches or pull requests

3 participants