-
Notifications
You must be signed in to change notification settings - Fork 447
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] Error: the document timestamp X is outside of ranges of currently writable indices #7345
Comments
There are few options we have:
We have certain data streams, where the count of document ingested is too few (For example: 1 docs per day by default in AWS billing?), I would like to question the advantage of enabling TSDB in such data streams. It's OK, to temporarily disable TSDB on such data streams, if there are such issues. If the first solution takes time, We should disable time series on this data stream (AWS billing), where documents are getting dropped because of old time stamp, so that immediately there is no impact on users of this package. |
Similarly, |
How many documents are approximately generated by Azure Billing metrics per day? |
The documents are grouped by product. Single document is generated for each product every day with the usage cost information. The number of documents depends on the number of products and the resource groups etc... |
@constanca-m Please confirm if these below are feasible, short term?
|
I will check this, but I don't think this is the best solution. We don't know the delay of the document, so adjusting the time window with a new custom look ahead could be just by chance.
For which packages exactly @lalit-satapathy ? I don't know enough about AWS to say if that solution will cause any problems. |
Summary of short-term solution in TSDB integration sync-up: This is a known issue, where TSDB only indexes recent metrics data in a given time window as defined by: index.look_ahead_time and late arrival is not accepted.
|
@constanca-m, Can we also have PR ready to TSDB on the AWS billing package? |
I don't know how to add the parameter in the main manifest, but you can change the settings on the template and that works.
Yes, it is linked on this issue. |
Once we confirm that it works manually directly, we can check if Fleet/package spec supports it next. |
It works, it is in Elastic documentation, also linked in the description of this issue. More precisely, you can find the example here. |
@lalit-satapathy I updated the description of this issue to include how to do that. |
@lalit-satapathy I've opened an issue in the Elasticsearch repository for this (^) |
@lalit-satapathy @constanca-m given that elastic/elasticsearch#98463 seems to be closed, can we close this one? Thanks |
Enabling TSDB on some data streams can lead to this error:
Having a look at how the time window works for a TSDB index, we can see that:
But what happens if we receive a document with some delay, and the document
timestamp
no longer fits the time window of the current writable index? The document ends up being rejected.To solve this issue, we have on the table this options:
look_ahead
for each data stream.Cons of this approach:
How to do this:
manifest.yml
file.timestamp
of the document being rejected.Cons of this approach:
The text was updated successfully, but these errors were encountered: