# About store compression,Does es\`current compression algorithm suppot only lz4 and deflate?

**URL:** https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185
**Category:** Elasticsearch
**Created:** [April 17, 2019, 4:48am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185 "2019-04-17T04:48:41Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 4:48am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/1 "2019-04-17T04:48:42Z")

</div>

Does es`current compression algorithm suppot only lz4 and deflate?Whether it supports other open source algorithms,or custom algorithms?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 17, 2019, 6:18am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/2 "2019-04-17T06:18:16Z")

</div>

I do believe those are the only two options.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 6:51am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/3 "2019-04-17T06:51:26Z")

</div>

@Christian_Dahlqvist  
Is there only two algorithms in Lucene, so es can only use lz4 and deflecte？

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 17, 2019, 7:16am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/4 "2019-04-17T07:16:38Z")

</div>

It is what Elasticsearch exposes. Why would you need another algorithm? Given that these only apply when compressing the document source, using an even more compressing algorithm might not save as much space as you think but still impact performance.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 7:34am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/5 "2019-04-17T07:34:37Z")

</div>

yes,just try another algorithm to improve performance.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 17, 2019, 7:49am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/6 "2019-04-17T07:49:58Z")

</div>

What performance problems are you facing? How would a different compression option help address this? I suspect there could be other optimisations that would have much more impact.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 8:10am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/7 "2019-04-17T08:10:13Z")

</div>

I tested the scroll, the hot spot function is compression, so I want to try another compression algorithm. Is there a replacement method here?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 17, 2019, 8:23am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/8 "2019-04-17T08:23:01Z")

</div>

Not that I know of.

---

<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: [May 15, 2019, 8:23am UTC](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/9 "2019-05-15T08:23:04Z")

</div>

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