[Profiling] Fine-tune mappings (#152799)

With this commit we avoid storing doc values for
`stackframe.function.name` to save disk space as doc values are not
needed due to our access pattern. We also sort stack traces by stack
frame ids to improve disk layout.
This commit is contained in:
Daniel Mitterdorfer 2023-03-07 12:53:58 +01:00 committed by GitHub
parent d2a329f88d
commit e97f488a1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -30,7 +30,9 @@
},
"Stackframe.function.name": {
"type": "keyword",
"index": false
"index": false,
"doc_values": false,
"store": false
},
"Stackframe.function.offset": {
"type": "integer",

View file

@ -2,7 +2,12 @@
"settings": {
"index": {
"number_of_shards": 16,
"refresh_interval": "10s"
"refresh_interval": "10s",
"sort": {
"field": [
"Stacktrace.frame.ids"
]
}
}
},
"mappings": {