Go to file
Daniel Berteaud 88352dec8b Update ES 7 to 7.17.20 2024-04-10 23:56:06 +02:00
consul/config
example Update ES 7 to 7.17.20 2024-04-10 23:56:06 +02:00
images Update to 8.13.0 2024-03-28 09:29:45 +01:00
init Rename vault-pki to elasticsearch-vault-pki 2024-04-02 13:15:57 +02:00
prep.d
templates
vault/policies
README.md
bundles.yml
elasticsearch.nomad.hcl Update to 8.13.0 2024-03-28 09:29:45 +01:00
variables.yml Update ES 7 to 7.17.20 2024-04-10 23:56:06 +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