# 502 response for Elasticsearch query

**URL:** <https://discuss.elastic.co/t/502-response-for-elasticsearch-query/207321>\
**Category:** Elasticsearch\
**Created:** [November 11, 2019, 9:56am UTC](https://discuss.elastic.co/t/502-response-for-elasticsearch-query/207321 "2019-11-11T09:56:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayabal\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jayabal_k/32/41905_2.png) [@Jayabal\_K](https://discuss.elastic.co/u/Jayabal_K)\
**Post date:** [November 11, 2019, 9:56am UTC](https://discuss.elastic.co/t/502-response-for-elasticsearch-query/207321/1 "2019-11-11T09:56:18Z")

</div>

Hi,

My elasticsearch cluster has ingestion rate of 10k docs/sec continuously. My elasticsearch queries are failing and throwing 502 response.

Also I reduced ingestion rate to 1K docs/sec and checked the same queries but issue exists.  
FYI My queries have term aggregations.

I checked CPU and memory usage, its normal.

Could anyone please help me to sort out this issue? If any additional details required, Please let me know, I am ready to share it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2019, 9:56am UTC](https://discuss.elastic.co/t/502-response-for-elasticsearch-query/207321/2 "2019-12-09T09:56:21Z")

</div>

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