-
Notifications
You must be signed in to change notification settings - Fork 17
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
Min Pool is not respected #22
Comments
Sequelize pool will keep on increasing available resources to given If application does not issue enough What is the real motivation behind this change @SergeyCherman? Are you facing any performance issues? |
@sushantdhiman Thank you for the quick reply! There were a couple reasons for this PR attempt:
You said that application should issue |
One point to keep in mind, this pool is not used with |
Sorry for the miscommunication, I meant that in 4.x (pre pool) min was respected and Sequelize would make the min configured connections on app start, in 5.x it looked like a regression as min connections weren't made. Is there a different area where the fix should be made? I attempted to do it via: #23 |
If this behavior is not going to be changed, I believe the documentation should be updated: Lines 51 to 57 in 066339c
Particularly,
|
@marcogrcr I'm sure this was a regression. I know @sushantdhiman had to depart the project, not sure how to get the discussion going with the new maintainers. |
Any update on this? Who's maintaining this repo now? |
I have thought about this and #23, I think a new method to fill pool like I'll accept such PR if this idea sounds ok |
@sushantdhiman yes I think that makes sense, I will add a new public method for I'll try and get it done this weekend. |
Any update on this issue? |
Sorry, I got tied up and forgot. I'll try and get a PR out this week. |
Any news? Or help we can provide? |
Hi @SergeyCherman |
Was this ever done, as I feel I am experiencing a similar issue in sequelize 6.19.2.
even though in mssql and in ssms I am able to connect to the db just fine. |
Did we go around fixing this? I see that PR by @SergeyCherman was closed. I'm on v6.20 and getting same issue. This is impacting the performance of the first batch of queries that the application receives, which i'm hypothesising is due to new connections being opened. |
I believe that this message is still what the current sequelize maintainers can review. |
Issue Description
In the sequelize configuration, I've set
pool: {
min: 10,
max: 30
}
When the connection is acquired it does not check if additional connections need to be made and hence only 1 connection is made instead of 10.
What do you expect to happen?
I expect the min setting to be respected and 10 connections to be made.
Issue is a copy of: sequelize/sequelize#11440 however I believe the issue is in sequelize-pool lib and not in the main sequelize project.
The text was updated successfully, but these errors were encountered: