How to configure compression for Elasticsearch

elasticsearch
circle.yml

#1

Hi

I’m trying to configure elasticsearch to accept gzip requests. The exact configuration to add/pass through to ES cmd is “http.compression: true”. How do I configure ES?

I used this page (https://circleci.com/docs/installing-elasticsearch/) to setup my custom version of ES.

Thanks for your help.

Cheers


#2
Summary

Fixed

Fixed by adding configuration in CircleCI supported yml format after the unzip step.

dependencies:
  post:
    - |
      if [[ ! -e elasticsearch-2.3.4 ]]; then wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.4/elasticsearch-2.3.4.tar.gz && tar -xvf elasticsearch-2.3.4.tar.gz && echo 'http.compression: true' > elasticsearch-2.3.4/config/elasticsearch.yml; fi
    - elasticsearch-2.3.4/bin/elasticsearch: { background: true }
    - sleep 10 && curl --retry 10 --retry-delay 5 -v http://127.0.0.1:9200/

#3