elasticsearch
Nomad job template for Elasticsearch cluster
Configure replicas for indices
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
Description
Languages
Shell
57.6%
HCL
31.8%
Dockerfile
10.6%