Try out agentkeepalive module
See original GitHub issue13.0.0-beta2
is the new build including the agentkeepalive module. To use this version install with npm install --save elasticsearch@beta
I just published version 12.1.0-agentkeepalive
of elasticsearch-js that includes the keep alive implementation that many people have identified works well for them. Please give it a shot and report any issues/successes here.
Until I/someone produce an automated test proving that it works and that the current implementation doesn’t I’m not comfortable releasing it as the default.
Even if you are a few major-version numbers away, you shouldn’t have any issue upgrading to 12.1 as long as you as setting your apiVersion
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:9 (4 by maintainers)
Top Results From Across the Web
node-modules/agentkeepalive: Support keepalive http agent.
keepAlive {Boolean} Keep sockets around in a pool to be used by other requests in the future. Default = true . keepAliveMsecs {Number}...
Read more >agentkeepalive - npm
Start using agentkeepalive in your project by running `npm i ... Homepage. github.com/node-modules/agentkeepalive#readme ... Try on RunKit.
Read more >Cannot find module 'agentkeepalive' when updating NPM to ...
I tried that but it didn't work. Aviator@AW:/mnt/c/Users/Adrian$ npm install -g npm@7.17.0 npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot ...
Read more >Top 5 agentkeepalive Code Examples - Snyk
To help you get started, we've selected a few agentkeepalive examples, based on popular ways it is used in public projects. Secure your...
Read more >Node.js best practices and troubleshooting - Azure App Service
The agentkeepalive module ensures that sockets are reused on your Azure webapp VM. Creating a new socket on each outbound request adds overhead ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes sure, you have to understand how to configure correctly the keepaliveagent, considering the usage.
@spalger the minSockets option is not used by keepaliveagent https://github.com/node-modules/agentkeepalive#new-agentoptions, this mean that no minimum # of socket are not kept around anymore, this could have an important impact.