[8.7] [Profiling] Fine-tune mappings (#152799) (#152804)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Profiling] Fine-tune mappings
(#152799)](https://github.com/elastic/kibana/pull/152799)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Daniel
Mitterdorfer","email":"danielmitterdorfer@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-03-07T11:53:58Z","message":"[Profiling]
Fine-tune mappings (#152799)\n\nWith this commit we avoid storing doc
values for\r\n`stackframe.function.name` to save disk space as doc
values are not\r\nneeded due to our access pattern. We also sort stack
traces by stack\r\nframe ids to improve disk
layout.","sha":"e97f488a1ac883c7ba9291e0537bdab8d0d8f66d","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v8.7.0","v8.8.0"],"number":152799,"url":"https://github.com/elastic/kibana/pull/152799","mergeCommit":{"message":"[Profiling]
Fine-tune mappings (#152799)\n\nWith this commit we avoid storing doc
values for\r\n`stackframe.function.name` to save disk space as doc
values are not\r\nneeded due to our access pattern. We also sort stack
traces by stack\r\nframe ids to improve disk
layout.","sha":"e97f488a1ac883c7ba9291e0537bdab8d0d8f66d"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152799","number":152799,"mergeCommit":{"message":"[Profiling]
Fine-tune mappings (#152799)\n\nWith this commit we avoid storing doc
values for\r\n`stackframe.function.name` to save disk space as doc
values are not\r\nneeded due to our access pattern. We also sort stack
traces by stack\r\nframe ids to improve disk
layout.","sha":"e97f488a1ac883c7ba9291e0537bdab8d0d8f66d"}}]}]
BACKPORT-->

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-03-07 08:27:01 -05:00 committed by GitHub
parent 541e274d83
commit 84356afd13
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": {