node-pool
node-pool copied to clipboard
Generic resource pooling for node.js
Hi! I'm using the generic-pool and node '.net' in nodeJs to create a socket pool. These are the factory methods I'm using: ``` create: () => { return new Promise((resolve,...
Hi, *** Just an update here, i need to explictly call destroy function to release the resourcse***, may be i have configured something incorrectly Sorry to be posting it here...
I deployed node instances using generic-pool through k8s. But after some time, which varies from 3 days to a few weeks, the generic pool of pods spit out TimeoutError when...
TimeoutError: ResourceRequest timed out at ResourceRequest._fireTimeout (/home/demo2/node_modules/generic-pool/lib/ResourceRequest.js:62:17) at Timeout.bound (/home/demo2/node_modules/generic-pool/lib/ResourceRequest.js:8:15) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)
Hi, I want to implement a "soft evict" in my code, similar to how it's implemented in [HikariCP](https://github.com/brettwooldridge/HikariCP): https://javadoc.io/doc/com.zaxxer/HikariCP/latest/com/zaxxer/hikari/HikariPoolMXBean.html#softEvictConnections() https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/pool/HikariPool.java#L364. It involves evicting currently idle connections from the pool and...
I am using phantom-pool which interns uses generic-pool. After running few hundered urls, phantomJs CPU usage shoots up to 100% and instances are not killed. Is anybody else seeing this?...
Make it work in browsers as well. https://github.com/coopernurse/node-pool/pull/300#issuecomment-1556594750
"reset" method that can be overridden is a very important addition that will let a "resting" a resource before putting it back to the pool. The resource shouldn't be available...
Added `maxAgeMillis` which if set will check the age of an object in the idle and evict if older than the value in MS. Allows for eviction of old connections...