mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Route documents to the correct shards in tsdb (#77731)
* Route documents to the correct shards in tsdb This causes elasticsearch to land documents from the same time series on the same shard. It does so by adding a new index setting `routing_path` which must be set when an index is in `mode: time_series` and may not be set outside of that mode. That setting contains a list of patterns to extract from the `_source` document that are hashed into the routing value. * Moar skip * tsdb survives full cluster restart * Remove auto generated id rejection We do want to reject these documents but let's sae that for a follow up change. * Simplify * Forbid routing_required * Small * Fork fork knife * Let failures flow * Fix full cluster * Always fork * Retry? * Remove pressure test arm * Add missing settings * WIP * Remove leftover * More cleaning * Fixup more tests * Remove old skip * New tests for Retry * More tests * Revert unrelated * One dispatch please * Stuff moved * More moving * Explain why fork * Back to ActionRunnable * Update comment * Utility method * Move routing_path under feature flag * Imports
This commit is contained in:
parent
8da1671077
commit
b6c61f4051
43 changed files with 1463 additions and 212 deletions
|
@ -12,6 +12,7 @@ setup:
|
|||
settings:
|
||||
index:
|
||||
mode: time_series
|
||||
routing_path: [metricset, k8s.pod.uid]
|
||||
number_of_replicas: 0
|
||||
number_of_shards: 2
|
||||
mappings:
|
||||
|
|
|
@ -166,6 +166,7 @@ tsdb:
|
|||
settings:
|
||||
index:
|
||||
mode: time_series
|
||||
routing_path: [metricset, k8s.pod.uid]
|
||||
number_of_replicas: 0
|
||||
number_of_shards: 2
|
||||
mappings:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue