Skip to content

Commit

Permalink
Don't set number of replicas for indices that rely on auto_expand_rep…
Browse files Browse the repository at this point in the history
…licas
  • Loading branch information
javanna committed May 24, 2024
1 parent 1ec137d commit 7ffbba8
Show file tree
Hide file tree
Showing 23 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"index": {
"auto_expand_replicas": "0-1",
"number_of_shards": 1,
"number_of_replicas": 0,
"priority": 100,
"refresh_interval": "1s"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"codec": "best_compression",
"number_of_shards": 1,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"final_pipeline": "behavioral_analytics-events-final_pipeline",
"sort": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"settings": {
"hidden": true,
"number_of_shards": "1",
"auto_expand_replicas": "0-1",
"number_of_replicas": "0"
"auto_expand_replicas": "0-1"
}
},
"_meta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"order": 100,
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"index.priority": 10,
"index.format": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"template": {
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1"
},
"lifecycle": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"format": 7,
"codec": "best_compression"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": ${xpack.monitoring.template.release.version},
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.format": 7,
"index.codec": "best_compression"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": ${xpack.monitoring.template.release.version},
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.auto_expand_replicas": "0-1",
"index.format": 7,
"index.codec": "best_compression"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": ${xpack.monitoring.template.release.version},
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.auto_expand_replicas": "0-1",
"index.format": 7,
"index.codec": "best_compression"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"settings": {
"index": {
"number_of_shards": 4,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"max_result_window": 150000,
"refresh_interval": "10s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"sort": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"sort": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"settings": {
"index": {
"number_of_shards": 16,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"settings": {
"index": {
"number_of_shards": 16,
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"settings": {
"index": {
"number_of_shards": "16",
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"template": {
"settings": {
"index": {
"number_of_replicas": 0,
"auto_expand_replicas": "0-1",
"refresh_interval": "10s",
"hidden": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"template": {
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1"
},
"lifecycle": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"template": {
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.hidden": true,
"index.format": 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"template": {
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.lifecycle.name": "watch-history-ilm-policy-16",
"index.hidden": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"order" : 1000,
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"auto_expand_replicas" : "0-all",
"analysis" : {
"filter" : {
Expand Down

0 comments on commit 7ffbba8

Please sign in to comment.