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

Prevent permanent waits, by ensuring that we continue creating resources if we need them #186

Closed
wants to merge 1 commit into from

Conversation

bobbysmith007
Copy link

  • There are many errors due to pools being configured with min: 0
    but then running out of workers while there is still work to do
  • This results in missed work, infinite loops and timeouts
  • A solution is to ensure that if we still have work todo
    that we make sure we still have some workers to do them

See:

@bobbysmith007
Copy link
Author

Sorry my initial patch was based off an older version, but I saw that the newest version still seemed to suffer this problem and I was trying to move it over from the old version without enough care .

Prevent permanent waits, by ensuring that we continue creating
resources if we need them

 * There are many errors due to pools being configured with min: 0
   but then running out of workers while there is still work to do
 * This results in missed work, infinite loops and timeouts
 * A solution is to ensure that if we still have work todo
   that we make sure we still have some workers to do them

See:

 * brianc/node-pg-pool#48
 * loopbackio/loopback-connector-postgresql#231
 * coopernurse#175 (Seems related)
@bobbysmith007
Copy link
Author

It seems travis wont run on the newest version (which I think passes) so I am going to close and open a new pull request. Sorry for the thrashing

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

Successfully merging this pull request may close these issues.

1 participant