elasticsearch/example
Daniel Berteaud b84f0533a8 Update ES to 8.13.3 / 7.17.21 2024-05-03 13:07:23 +02:00
..
consul/config Update to 8.13.1 and render example 2024-04-02 13:15:09 +02:00
images Update ES to 8.13.3 / 7.17.21 2024-05-03 13:07:23 +02:00
init Update ES 8 to 8.13.2 2024-04-08 23:07:41 +02:00
prep.d Update ES to 8.13.3 / 7.17.21 2024-05-03 13:07:23 +02:00
vault/policies Update to 8.13.1 and render example 2024-04-02 13:15:09 +02:00
README.md Update to 8.13.1 and render example 2024-04-02 13:15:09 +02:00
elasticsearch.nomad.hcl Update ES to 8.13.3 / 7.17.21 2024-05-03 13:07:23 +02:00

README.md

elasticsearch

Nomad job template for Elasticsearch cluster

Setup initial password

A random password is generated for the elastic system account (in vault, kv/service/elasticsearch, key elastic_pwd) but is not used automaticaly. You must setup passwords with

elasticsearch-setup-passwords interactive

Configure replicas for indices

Once elastic passwords are OK, you can configure indices to have the desired number of replicas

for INDEX in inventory stock purchase-requests; do
  curl --user 'elastic:XXX' \
    -X PUT \
    -H 'Content-Type: application/json' \
    http://localhost:9200/${INDEX}/_settings \
    -d '{ "index.number_of_replicas" : 2 }'
done