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:
If it's not possible, then I am okay with that.
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+
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.