ElasticSearch7.5.2 template management index number of copies, fragmentation

First, a plurality of designated index, created as shown below when the name contains filebeat- , Test- , the dev- , prod- naming rule is specified index index a slice, a copy 0

curl -XPUT 'http://localhost:9200/_template/template_http_request_record' -H 'Content-Type: application/json' -d '{"index_patterns": ["filebeat-*","test-*","dev-*","prod-*"],"settings": {"number_of_shards": 1,"number_of_replicas": 0}}'

By cerebro query you can see the default template has been changed

Guess you like

Origin www.cnblogs.com/caidingyu/p/12326845.html
Recommended