Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Code intel: Improve eviction strategy #19120

Closed
efritz opened this issue Mar 13, 2021 · 1 comment · Fixed by #22930
Closed

Code intel: Improve eviction strategy #19120

efritz opened this issue Mar 13, 2021 · 1 comment · Fixed by #22930
Assignees
Labels
dependency-indexing team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Comments

@efritz
Copy link
Contributor

efritz commented Mar 13, 2021

Currently our eviction strategy is simple: Remove any commit that is

  • older than PRECISE_CODE_INTEL_DATA_TTL (720h/~30d by default), and
  • is not visible from the tip of the default branch

This isn't enough, as we need to now consider:

  • indexes that exist as dependencies of another active index
  • indexes that describe a named branch or tag, but is not itself tip (releases)

We need to start tracking additional information to more accurately determine what we can throw out.

@efritz efritz added the team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) label Mar 13, 2021
@github-actions
Copy link
Contributor

Heads up @macraig - the "team/code-intelligence" label was applied to this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency-indexing team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants