Disable index compression

Hi Elasticsearch gurus,

I asked this question before about disabling compression on Elasticsearch index and Stephen Brown and David Turner were kind enough to reply that it's not possible. But if it is, then it needs to be recompiled and repackaged. I guess the questions I have are:

  1. If it's not possible, then I am okay with that.
  2. But if it is possible, can you share how to do it? Or is it because it needs to be recompiled and only Elasticsearch can perform such actions?
    The previous question was posted here for some context.
    Disabling Elasticsearch Index compression version 7.10+

Best,

Tom

I think that the last answer by David answers both of your questions:

For completeness, yes, you would need to compile and repackage Elasticsearch (and quite possibly some of its dependencies) to disable compression.
I wouldn't be surprised to see worse performance after doing so too - the OS page cache would be working with the uncompressed data and so will fill up much much faster, and this is an extremely important factor for performance. There's a good reason this isn't offered as an option.

Out of the box there is no way to disable compression, you can only choose between LZ4 and DEFLATE.

It may be possible if you change the code, but I don't think you will find anything telling you how to do this, you will probably dig into the code of both Elasticsearch and some dependecies like Lucene to understand how it works and see what you need to do to disable compression.

For example, on Github you have instructions on how to build it from source.

Thanks, Leandro! Very helpful!

Tom

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