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

Rewrite NameRes script to delete the database later in the download process #842

Open
gaurav opened this issue Feb 15, 2024 · 0 comments · May be fixed by #910
Open

Rewrite NameRes script to delete the database later in the download process #842

gaurav opened this issue Feb 15, 2024 · 0 comments · May be fixed by #910
Assignees

Comments

@gaurav
Copy link
Collaborator

gaurav commented Feb 15, 2024

We currently wipe the Solr database as the first step in the init pod:

Yesterday we ended up with a weird state in ITRB Prod where the Solr pod wasn't restarting because of a configuration issue. Once we got it restarted, it started in download mode -- so the first thing it did was wipe the Solr database!

Given the weird state, it's not clear to me that we could have restarted in LOAD_DATA=no mode and avoiding wiping the database, but if we move this deletion line later in the script that at least becomes an option, so hopefully we can catch that.

I think the right move would be to download this file to a separate directory -- this could be a separate mount point, which we can hopefully configure to be InitContainer-only so we don't need to lock up 400G for the Solr pod. We can then wipe the main database only after the download is complete.

gaurav added a commit that referenced this issue May 28, 2024
This means that if we accidentally start a pod with LOAD_DATA=yes, we
should have about an hour to re-run it with LOAD_DATA=no before the
database gets deleted.

Closes #842.
@gaurav gaurav self-assigned this Jul 18, 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
1 participant