question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Try out agentkeepalive module

See original GitHub issue

13.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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lbdremycommented, Mar 31, 2017

Yes sure, you have to understand how to configure correctly the keepaliveagent, considering the usage.

1reaction
lbdremycommented, Mar 30, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found