-
Notifications
You must be signed in to change notification settings - Fork 692
Coalesce read configuration for recent data cutoff #6507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -400,7 +400,6 @@ query_frontend: | |
| max_result_limit: 0 | ||
| max_duration: 168h0m0s | ||
| query_backend_after: 15m0s | ||
| query_ingesters_until: 30m0s | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this definitely cleared out of JSonnet? Pods crashloop on unknown param IIRC
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get only docs results for the config now. |
||
| ingester_shards: 3 | ||
| most_recent_shards: 200 | ||
| default_spans_per_span_set: 3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,5 @@ | |
| query_frontend: | ||
| search: | ||
| query_backend_after: 0s | ||
| query_ingesters_until: 0s | ||
| metrics: | ||
| query_backend_after: 0s | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,6 @@ type SearchSharderConfig struct { | |
| MaxDuration time.Duration `yaml:"max_duration"` | ||
| // QueryBackendAfter determines when to query backend storage vs ingesters only. | ||
| QueryBackendAfter time.Duration `yaml:"query_backend_after,omitempty"` | ||
| QueryIngestersUntil time.Duration `yaml:"query_ingesters_until,omitempty"` | ||
| IngesterShards int `yaml:"ingester_shards,omitempty"` | ||
| MostRecentShards int `yaml:"most_recent_shards,omitempty"` | ||
| DefaultSpansPerSpanSet uint32 `yaml:"default_spans_per_span_set,omitempty"` | ||
|
|
@@ -115,7 +114,7 @@ func (s asyncSearchSharder) RoundTrip(pipelineRequest pipeline.Request) (pipelin | |
| // buffer of shards+1 allows us to insert ingestReq and metrics | ||
| reqCh := make(chan pipeline.Request, s.cfg.IngesterShards+1) | ||
|
|
||
| // build request to search ingesters based on query_ingesters_until config and time range | ||
| // build request to search ingesters based on query_backend_after config and time range | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are still references to ingesters. I'm leaving them to not conflict with when this code is cleaned up. |
||
| // pass subCtx in requests so we can cancel and exit early | ||
| jobMetrics, err := s.ingesterRequests(tenantID, pipelineRequest, *searchReq, reqCh) | ||
| if err != nil { | ||
|
|
@@ -203,7 +202,7 @@ func (s *asyncSearchSharder) ingesterRequests(tenantID string, parent pipeline.R | |
| return resp, buildIngesterRequest(tenantID, parent, &searchReq, reqCh) | ||
| } | ||
|
|
||
| ingesterUntil := uint32(time.Now().Add(-s.cfg.QueryIngestersUntil).Unix()) | ||
| ingesterUntil := uint32(time.Now().Add(-s.cfg.QueryBackendAfter).Unix()) | ||
|
|
||
| // if there's no overlap between the query and ingester range just return nil | ||
| if searchReq.End < ingesterUntil { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change!