# ES 2.4 Defending Against Bad Queries

**URL:** <https://discuss.elastic.co/t/es-2-4-defending-against-bad-queries/183577>\
**Category:** Elasticsearch\
**Created:** [May 30, 2019, 4:48pm UTC](https://discuss.elastic.co/t/es-2-4-defending-against-bad-queries/183577 "2019-05-30T16:48:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirsteve](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@sirsteve](https://discuss.elastic.co/u/sirsteve)\
**Post date:** [May 30, 2019, 4:48pm UTC](https://discuss.elastic.co/t/es-2-4-defending-against-bad-queries/183577/1 "2019-05-30T16:48:01Z")

</div>

Hi,

I've recently started supporting several ElasticSearch 2.4 clusters and am seeing issues occurring related to clients submitting bad queries.

What happens typically is a bad query comes in and causes the majority of the data nodes in the cluster to go into GC hell. The only way to fix this when it happens is to bounce the nodes and wait for the cluster to go green again.

Unfortunately, upgrading is not currently an option (this will happen eventually) so it doesn't seem I can do some of the nice defensive things in later versions like auto killing queries (as far as I can tell).

I was wondering what kind of advice the community would have for this situation? So far I am looking into killing bad queries (and ultimately fixing them) on the client side before they even get submitted to ES but curious as to what options there might be on the ES side as well.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 30, 2019, 9:37pm UTC](https://discuss.elastic.co/t/es-2-4-defending-against-bad-queries/183577/2 "2019-05-30T21:37:13Z")

</div>

2.4 was limited in what it could do around managing this, you do really need to upgrade or manage things on the client side.

---

<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:** [June 27, 2019, 9:37pm UTC](https://discuss.elastic.co/t/es-2-4-defending-against-bad-queries/183577/3 "2019-06-27T21:37:14Z")

</div>

Closed on June 27, 2019, 9:37pm UTC

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