Hello, i have the following template for one of my indexes:
PUT _template/template_analytics-prod
{
"index_patterns": [
"analytics-prod-*"
],
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1,
"auto_expand_replicas": false
}
}
but when i look at new indexes being created they still have 5 shards, for example:
curl -X GET 'http://localhost/_cat/indices/*?bytes=b&v&index=index_name&h=index,docs.count,store.size,pri.store.size,pri' | awk 'NR<3{print $0;next}{print $0| "sort -r"}' | grep 'analytics-prod-2020.12.19'
analytics-prod-2020.12.19 243355 563717328 299907775 5
what am i missing?
any advice is much appreciated
dadoonet
(David Pilato)
December 19, 2020, 3:07pm
2
Which tool/app is creating the index?
What happen if you run:
PUT /analytics-prod-test
?
dadoonet:
PUT /analytics-prod-test
I get
{
"acknowledged" : true,
"shards_acknowledged" : true,
"index" : "analytics-prod-test"
}
then GET /analytics-prod-test/_stats
returns
{
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
...
}
warkolm
(Mark Walkom)
December 21, 2020, 3:01am
4
template_aws-elb-2020.11 [aws-elb-2020.11] 0
analytics-2020.04 [analytics-2020.04] 0
analytics-2020.05 [analytics-2020.05] 0
.kibana_task_manager [.kibana_task_manager] 0 7010199
template_elbv2 [aws-elbv2-*] 0
apm-6.5.3 [apm-6.5.3-*] 1
template_apigw [aws-apigw-*] 0
.management-beats [.management-beats] 0 70000
template_analytics-prod [analytics-prod-*] 0
template_aws-elb-2020.10 [aws-elb-2020.10] 0
system
(system)
Closed
January 19, 2021, 2:45pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.