I have a "Elastic-search + Kibana" instance which has a lot of data. I have another HAProxy instance which redirects connection to Kibana dashboard. I am having a issue where the Kibana Dashboard isn't able to search (*) , it takes too much time & eventually throws this -:
I want to know why is this happening or what exactly "Bad Gateway" mean. Moreover what to can be done to solve this.
Found the solution , it was the issue of Elastic_search tuning. I had to allocate half of the memory to ES_HEAP_SIZE & did some tweaks on elasticsearch.yml which doesn't allow JVM to swap memory.