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

Ensure availability of backend vm during scheduled running of job #984

Open
zigouras opened this issue Oct 28, 2024 · 1 comment
Open

Ensure availability of backend vm during scheduled running of job #984

zigouras opened this issue Oct 28, 2024 · 1 comment

Comments

@zigouras
Copy link
Collaborator

zigouras commented Oct 28, 2024

Is your feature request related to a problem? Please describe.
Our spot vm gets preempted by Google and may be offline when it should be running the scheduled job. We have GCP send a Slack message to the backend channel when the preemption happens and someone has to manually restart the vm from the cloud console.

Describe the solution you'd like

  1. An automated way of restarting the vm if it is preempted, or...
  2. An automation to only run the vm for the hour a week it takes to run the job and then shut it down. This will also save money by not having the vm running when it is not being used.

GCP automation tools may allow us to do one or both of the above. It has to be researched. Team leads will still be able to restart and ssh into the vm if needed to work there.

Describe alternatives you've considered
Have a script running on a team member's personal machine that is always up that can do 1. or 2. above with the Google cloud sdk.

Additional context
Since we have not been loading new vacant properties data from the city since July, 2024 because the data is corrupted, this is less of a priority.

@zigouras zigouras changed the title Automatically ensure availability of backend vm during scheduled running of job Automate availability of backend vm during scheduled running of job Oct 28, 2024
@zigouras zigouras changed the title Automate availability of backend vm during scheduled running of job Ensure availability of backend vm during scheduled running of job Oct 29, 2024
Copy link

This issue has been marked as stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant