# Http minimum compression size

**URL:** <https://discuss.elastic.co/t/http-minimum-compression-size/207800>\
**Category:** Elasticsearch\
**Created:** [November 14, 2019, 3:01am UTC](https://discuss.elastic.co/t/http-minimum-compression-size/207800 "2019-11-14T03:01:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [November 14, 2019, 3:01am UTC](https://discuss.elastic.co/t/http-minimum-compression-size/207800/1 "2019-11-14T03:01:44Z")

</div>

Hi,

when configuration http.compression set to true, but with another configuration to specify for instance, http.compression.min\_size = 2048 where elasticsearch will only apply compression if the filesize is greater than 2048? Does elasticsearch has such feature?

We noticed that if the compression is enabled and for query that return a small response, the time spent actually greater than without http.compression enabled.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)

---

<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 12, 2019, 3:01am UTC](https://discuss.elastic.co/t/http-minimum-compression-size/207800/2 "2019-12-12T03:01:49Z")

</div>

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