Skip to content

Commit

Permalink
NO-ENDPOINT: Updated OpenSearch Schema (#139)
Browse files Browse the repository at this point in the history
Updated OpenSearch schema to correct data stream name for the new format
and added schema definition of error indexes. Without the error index
definition, OpenSearch defaults to using 10 shards for the error index
which is very wasteful, with 5 primary and 5 replicas.
  • Loading branch information
amcgreevy-r7 authored Jun 2, 2024
1 parent 07173eb commit 3c18ec4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/policies/rollover_strategy.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
}
],
"ism_template": {
"index_patterns": ["*_results*"],
"priority": 101
"index_patterns": ["*_transient*"],
"priority": 300
}
}
}
22 changes: 22 additions & 0 deletions schema/templates/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"index_patterns": [
"*_error"
],
"template": {
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"dynamic": false,
"properties": {
"client_id": {
"type": "keyword"
},
"data": {
"type": "text"
}
}
}
}
}

0 comments on commit 3c18ec4

Please sign in to comment.