Configure Elasticsearch

Configure Elasticsearch

The configuration parameters of Elasticsearch are defined in the corresponding sections of the Reclass model.

To configure Elasticsearch:

  1. Log in to the Salt Master node.

  2. Configure the parameters:elasticsearch section in the classes/cluster/<cluster_name>/stacklight/log.yml file of the Reclass model as required. For example, to limit the heap size, specify the following snippet:

    parameters:
      elasticsearch:
        server:
          heap:
            size: 31
    
  3. Apply the Salt state:

    salt -C 'I@elasticsearch:server' state.sls elasticsearch
    

For configuration examples, see the README.rst at Elasticsearch Salt formula.