Skip to content

Run daily database maintenance tasks #3446

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

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

jtgeibel
Copy link
Member

Run VACUUM version_downloads; daily. We could alternatively tweak the
auto-vacuum parameters on this table, but long term we should archive
daily download stats outside of the database and it will be easier to
pick the parameters then, once we have only 90 days of history rather
than growing daily without bound.

r? @Turbo87

Run `VACUUM version_downloads;` daily. We could alternatively tweak the
auto-vacuum parameters on this table, but long term we should archive
daily download stats outside of the database and it will be easier to
pick the parameters then, once we have only 90 days of history rather
than growing daily without bound.
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I assume we have something in the Heroku config that triggers this every day?

@jtgeibel
Copy link
Member Author

Yeah, I'll add an entry to the scheduler after deploying. I'll probably add it to staging too, for consistency, even though it really isn't needed there.

@jtgeibel
Copy link
Member Author

Merging to include in a deploy today.

@bors r=Turbo87

@bors
Copy link
Contributor

bors commented Mar 21, 2021

📌 Commit c26c179 has been approved by Turbo87

@bors
Copy link
Contributor

bors commented Mar 21, 2021

⌛ Testing commit c26c179 with merge 9815a58...

@bors
Copy link
Contributor

bors commented Mar 21, 2021

☀️ Test successful - checks-actions
Approved by: Turbo87
Pushing 9815a58 to master...

@bors bors merged commit 9815a58 into rust-lang:master Mar 21, 2021
@jtgeibel jtgeibel deleted the daily-db-maintenance branch March 21, 2021 17:50
@jtgeibel
Copy link
Member Author

Scheduled to run daily at 1AM UTC in both staging and production.

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.

4 participants