-
Notifications
You must be signed in to change notification settings - Fork 459
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
TSDB: document timestamp is outside of ranges of currently writable indices #8431
Comments
@martijnvg @gizas The above is a TSDB rally track. How do we make this work? |
I don't know which tsdb rally track this is. For tsdb k8s queries rally track we hard code that data streams to accept data from |
With elastic/elastic-package#1522 landed we have now the capability to directly generate rally tracks from integration packages as long as the corpus templates exist. Andrea linked to the example above in this PR: #8429 It generates the metrics for aws.sqs. I think there are a few challenges here:
That means, we are not in control of the template (and I think shouldn't be) as it is the template that will be used by all users and is what we actually want to test. This works except for TSDB. How do we overcome this? Should elastic-package for the package template load an |
Does the data set that gets generated have fixed timestamps? If so, then I think adding a custom template that sets a fixed start and end time is an acceptable workaround. The core of the problem is that tsdb data streams don't handle metrics that are older than 2 hours before the creation time of the tsdb data stream. If we want to address this we need to go over the ideas we have for indexing late or historic metrics and see whether those ideas make sense. |
the data are dynamic and stars always on now
there's no data older than 2 hours before the creation time of the tsdb, but there might be for a month later |
Seems also for future data the same limitation applies. My understanding is, the TSDB team is working on getting this fixed but this will take some time. Long term I expect this to be fixed by rally or TSDB itself but because of timing I proposed the following hack. elastic-package loads for each dataset it runs the benchmark on the This means all data is indexed into a single index but assuming data is ingested between 2000 and 2099 we are fine. Unfortunately it means extra logic in the elastic-package command but I assume it is the quickest one to do. If we have a dataset @aspacca Would this possible to be added (and tested) to unblock this? For the rally tracks, I was also wondering if we should take the defined time range and do |
sure, I'll start working on it.
currently the timestamp is |
I think the custom component template approach should for Rally tracks that use tsdb. The |
My proposal for the timestamp would be to change it to |
it is added only for time series data stream. there is one problem: since the template body is generic we don't have a fixed set of dimensions for |
I forgot about this detail. The Is it possible to to use a wildcard pattern that matches with a keyword dimension field that always exists? |
@martijnvg I ended up simulating the template installed by the package, manipulating it with the new end and start time and adding an higher priority for the index pattern of the datastream we run the rally benchmark against |
I was thinking about this is another possible solution as well. Great that this works out in that PR. |
I'm glad we find a workaround but I'm not too happy about the solution as it means we overwrite the full template: elastic/elastic-package#1555 (comment) Before we move forward with it, @martijnvg can you think of other potential solutions? |
As the routing path is generated out of the |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
While working on #8429 I setup 20k events with a timestamp of 5m far from each other.
When I run the rally track the result was 100% failure ingestion rate.
Looking at the debug response ES cluster was returning the errors like the followin:
The text was updated successfully, but these errors were encountered: