Skip to content
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

Explore if unarchiving is not needed in storage #541

Closed
juliusv opened this Issue Feb 18, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@juliusv
Copy link
Member

juliusv commented Feb 18, 2015

While archiving of metrics seems like a reasonable thing (i.e. only create a fp->metric mapping in leveldb once a series is evicted from memory for the first time), it might be more convenient/efficient/easier to not unarchive a metric if it is moved back into memory (i.e. having the mapping in both, memory and leveldb).

Advantages:

  • No deletion from leveldb required upon unarchiving.
  • No additional write to leveldb required when re-archiving.

Disadvantages:

  • Possibly more bookkeeping at some places (e.g. purging a whole series: if it is in memory, we now have to check leveldb, too, because it might be there as well).
  • Double-saving of some data (but since unarchiving is relatively rare, it shouldn't matter so much; also, unarchived series are relatively likely to be re-archived soon).

Considerations:

  • Perhaps track for in-memory time series, if they have been archived before so that we don't need to check leveldb for membership upon re-archiving and purging?
  • Perhaps unarchiving due to a query should be treated differently form unarchiving due to new sample ingestion? The former will lead to very soon re-archiving, while the latter will keep the time series in place for at least the memory retention period.

@juliusv juliusv added the enhancement label Feb 18, 2015

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented May 11, 2015

The new collision detection code tips the balance here, IMHO, as we have to query the archive more often and want to keep it as lean as possible.

Closing, but feel free to re-open if you disagree.

@beorn7 beorn7 closed this May 11, 2015

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.