Git Product home page Git Product logo

Comments (2)

sandfox avatar sandfox commented on July 24, 2024

This looks like intended behaviour.

Once each of the first 4 resources are destroyed are they being replaced by another set of resources? (i.e does the pool always have 4 resources in it, because that should be what is happening)
The resources are getting destroyed after 30 seconds because of the idleTimeoutMillis: 30000.

from node-pool.

frank-weindel avatar frank-weindel commented on July 24, 2024

Looking at it closer I see the problem is different than I originally thought. When I have the minimum set to 4 the pool does start to spawn 4 resources when its created. However, immediately after the pool creation I call acquire 4 times. This starts up an ADDITIONAL 4 resources instead of waiting for the first 4 to finish initializing and using them. Those 4 additional resources were what I was seeing get destroyed. Its not a huge deal for me since this can only happen at startup.

I can understand fixing that issue might not be worth the complexity.

from node-pool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.