Go to file
2024-02-07 17:00:39 +01:00
consul/config Cleanup 2024-02-01 14:32:09 +01:00
images Add support for Traefik 2024-01-25 16:45:30 +01:00
init New bundle for an Elasticsearch cluster 2024-01-25 14:52:55 +01:00
prep.d Cleanup 2024-02-01 14:32:09 +01:00
templates Cleanup 2024-02-01 14:32:09 +01:00
vault/policies New bundle for an Elasticsearch cluster 2024-01-25 14:52:55 +01:00
bundles.yml New bundle for an Elasticsearch cluster 2024-01-25 14:52:55 +01:00
elasticsearch.nomad.hcl Add constraint so each alloc runs on different node 2024-02-05 21:51:46 +01:00
README.md Add support for Traefik 2024-01-25 16:45:30 +01:00
variables.yml Update to 8.12.1 2024-02-07 17:00:39 +01:00

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