ES7.x更改默认分片数量及副本
CURL方式:
curl -XPUT 'http://user:passwd@10.xxx.xxx.xxx:9200/_template/default_template' -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"settings": {"number_of_shards": 3,"number_of_replicas": 0}}'
KIBANA方式:
POST _template/default_template
{
"index_patterns": [
"*"
],
"settings": {
"number_of_shards": 3,
"number_of_replicas": 0
}
}