Add LogsDB option to route on sort fields#116687
Merged
kkrik-es merged 58 commits intoelastic:mainfrom Dec 19, 2024
Merged
Conversation
Collaborator
|
Hi @kkrik-es, I've created a changelog YAML for you. |
…nto logsdb/route-on-sort-fields-3
Contributor
Author
|
EDIT: ignore this, more results below. results.txt |
Collaborator
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Contributor
Author
There was an issue with the run above, there were many indexing errors due to missing sort field values. Updated results (sortin on Smaller but still sizable wins, esp on indexing time. |
# Conflicts: # server/src/main/java/org/elasticsearch/cluster/routing/IndexRouting.java
…sdb/LogsdbIndexModeSettingsProvider.java Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com>
…nto logsdb/route-on-sort-fields-3
…nto logsdb/route-on-sort-fields-3
…nto logsdb/route-on-sort-fields-3
Collaborator
💔 Backport failed
You can use sqren/backport to manually backport by running |
Contributor
Author
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
kkrik-es
added a commit
to kkrik-es/elasticsearch
that referenced
this pull request
Dec 19, 2024
* Add LogsDB option to route on sort fields * fix encoding * Update docs/changelog/116687.yaml * tests * tests * tests * fix mode * tests * tests * tests * add test * fix test * sync * updates from review * test fixes * test fixes * test fixes * Move logic to SyntheticSourceIndexSettingsProvider * fix test * sync * merge, no fallback * comments * fix test * address comments * address comments * address comments * Update x-pack/plugin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/LogsdbIndexModeSettingsProvider.java Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com> * [CI] Auto commit changes from spotless * update tests * [CI] Auto commit changes from spotless * update tests * fix rest compat tests --------- Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com> Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit d80cbdd) # Conflicts: # rest-api-spec/build.gradle # server/src/main/java/org/elasticsearch/common/TimeBasedKOrderedUUIDGenerator.java
elasticsearchmachine
pushed a commit
that referenced
this pull request
Dec 19, 2024
* Add LogsDB option to route on sort fields (#116687) * Add LogsDB option to route on sort fields * fix encoding * Update docs/changelog/116687.yaml * tests * tests * tests * fix mode * tests * tests * tests * add test * fix test * sync * updates from review * test fixes * test fixes * test fixes * Move logic to SyntheticSourceIndexSettingsProvider * fix test * sync * merge, no fallback * comments * fix test * address comments * address comments * address comments * Update x-pack/plugin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/LogsdbIndexModeSettingsProvider.java Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com> * [CI] Auto commit changes from spotless * update tests * [CI] Auto commit changes from spotless * update tests * fix rest compat tests --------- Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com> Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit d80cbdd) # Conflicts: # rest-api-spec/build.gradle # server/src/main/java/org/elasticsearch/common/TimeBasedKOrderedUUIDGenerator.java * Update LogsIndexingIT.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a storage optimization, improving codec efficiency. It requires configuring more than one sort fields (excluding
@timestamp) to reduce the likelihood for hotspots in shard routing.Related to #109334