Comments (3)
Sounds like before ES2 goes down the client sniffs the cluster and sees that it's made up of one node (ES2), causing it to remove all other connections. Then, when ES2 goes down, the client keeps trying to connect to the only node it knows of (EC2).
The simplest answer is probably to add nodes to your cluster, this could prevent your entire cluster from falling over and therefore prevent this issue.
If plan to keep your cluster at two nodes, I'd suggest disabling sniffing. With sniffing disabled, connections won't be removed dynamically and your original host list will always be used.
Finally, increasing the sniffInterval should make this less likely but it won't actually prevent it from happening.
from elasticsearch-js.
Yes, That works. Thank you. 👍
Shouldn't the sniffInterval update the list of hosts and add to the connectionPool?
from elasticsearch-js.
Yes, but it relies on the cluster to define the current list of nodes.
from elasticsearch-js.
Related Issues (20)
- Internal module error HOT 1
- bulk helper add onSuccess callback HOT 3
- Content-Type header being changed to "text/plain" from "application/json" somewhere in the process of publishing a document to self-hosted Elasticsearch HOT 5
- Global client context not passed to Transport in 7.13.0 HOT 1
- Support for ES|QL HOT 2
- enum and/or type guard for QueryDslTextQueryType HOT 1
- search_after with sort on nested fields HOT 1
- Redaction mechanism transform arrays properties into objects HOT 1
- Nuxt 3 compatibility HOT 1
- Using the `[]` chars for an enrich policy name isn't wrapped correctly on `deletePolicy` method HOT 1
- ProductNotSupportedError: The client noticed that the server is not a supported distribution of Elasticsearch HOT 1
- Add types for plugins HOT 2
- Error parsing undici module in Next.js 14 project HOT 3
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 product-check listeners added HOT 2
- test issue
- Always return statusCode property.
- Stack traces are not informative when using `HttpConnection`
- Can't use asStream with body on v8 but docs say we can HOT 2
- Inserting geo_point value modifies index mapping HOT 1
- [ESQL] Version is a required field HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-js.