Issue with AWS Load Balancer when using Java API 2.3.5


(Quentin Reul) #1

We have deployed Elasticsearch 2.1.2 on a AWS server. We have developed a service that communicate to elasticsearch using the Java API 2.3.5. For security reason, we have placed Elasticsearch behind a load balancer. We are encountering some issues when the IP of the load balancer is changing. Is there a known issue with the Java API caching the IP for requests?


(Mark Walkom) #2

What issues?

However there was a problem (fixed in 2.4.2) where DNS entries were not correctly refreshed.


(Quentin Reul) #3

It seems that the IP is cached through the Java API and queries are failing when AWS is creating a new IP as the code still uses the old IP. In our case, we use DNS to refer to the elasticsearch endpoint. Looking at the release notes for 2.4.2, I don't see any references to any resolutions to issue related to DNS.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.