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

Add script to delete indexes from Redis #2120

Merged
merged 1 commit into from
May 15, 2024

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented May 15, 2024

Add a script to check what indexes are in the EntryIndex table in a MySQL database and deletes those indexes from the Redis database. This is meant to be done after Rekor is migrated to using --search_index.storage_provider=mysql and the MySQL table has been backfilled with all the indexes. Deleting the data allows us to downsize the Redis instance.

Summary

Release Note

Documentation

Add a script to check what indexes are in the EntryIndex table in a
MySQL database and deletes those indexes from the Redis database. This
is meant to be done after Rekor is migrated to using
--search_index.storage_provider=mysql and the MySQL table has been
backfilled with all the indexes. Deleting the data allows us to downsize
the Redis instance.

Signed-off-by: Colleen Murphy <[email protected]>
@cmurphy cmurphy requested a review from a team as a code owner May 15, 2024 00:49
Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.63%. Comparing base (488eb97) to head (326bf52).
Report is 111 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2120      +/-   ##
==========================================
+ Coverage   66.46%   68.63%   +2.17%     
==========================================
  Files          92       92              
  Lines        9258     7288    -1970     
==========================================
- Hits         6153     5002    -1151     
+ Misses       2359     1542     -817     
+ Partials      746      744       -2     
Flag Coverage Δ
e2etests 50.38% <ø> (+2.82%) ⬆️
unittests 48.92% <ø> (+1.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@haydentherapper haydentherapper merged commit bb41aff into sigstore:main May 15, 2024
15 checks passed
@github-actions github-actions bot added this to the v1.2.2 milestone May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants