-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix ttl #5
Fix ttl #5
Conversation
if seriesAge > q.ttl { | ||
// TODO @mattdurham add metric here for ttl expired. | ||
// Since we arent pushing the TS forward we should put it back into the pool. |
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.
Can this comment also explain what causes the expired series to be discarded, if it's not being discarded here?
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.
// For any series that exceeds the time to live (ttl) based on its timestamp we do not want to push it to the networking layer
// but instead drop it here by continuing.
The above sound reasonable?
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.
Sounds good. I had to get my head back into the codebase, the PutTimeSeriesIntoPool
function sounds like you're returning data to the WAL, not returning the allocated object to be reused, at least when my head is not in the implementation.
Ensure the TTL is always comparing apples to apples.
Added a new metric for file vs network drift
Remove unneeded code