I have Nginx as a LB which sits in front of the ECE proxy.
When I added a wildcard DNS which pointed directly to the ECE proxy IP, I was able to connect to the cluster using the cluster endpoint. The DNS record is: *.ece.org -> 10.1.2.3, where 10.1.2.3 is the proxy IP)
When a LB sits in front of the proxy, the connection does not work. First, I added a wildcard DNS which points to the LB *.ece.org -> 10.1.2.99 (where 10.1.2.99 is the IP of the load balancer)
Then, in the nginx load balancer, the conf file is as follows:
You need to have proxy_http_version 1.1; under location /, otherwise looks OK
If adding that didn't work, can you get any debug logging from nginx? My guess would be that it was some hard-to-spot-with-the-eye misconfig in that case
Yes, I added the proxy_http_version 1.1 and proxy_set_header HOST $host lines and the cluster endpoint URL is able to connect via the nginx load balancer now. Thanks for the tip
However, there is a need to remove the port from the URL, otherwise the endpoint does not connect. e.g. http://(clusterID).ece.org can connect but http://(clusterID).ece.org:9200 is not able to connect.
Is this considered correct or is there additional configuration needed?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.