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

deployment: delete old database periodically #9

Closed
2 of 3 tasks
derhuerst opened this issue Jun 14, 2021 · 0 comments
Closed
2 of 3 tasks

deployment: delete old database periodically #9

derhuerst opened this issue Jun 14, 2021 · 0 comments
Assignees

Comments

@derhuerst
Copy link
Collaborator

derhuerst commented Jun 14, 2021

Currently, the build script tries to delete the old/previous database right away. This fails in production, because the service is running, so PostgreSQL won't delete it.

Instead, there should be a timed task in the deployment setup repo that periodically prunes all databases but the n most recent.

  • write cleanup script
  • remove deletion/cleanup part from build.sh
  • integrate cleanup script into digitransit-ansible
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

No branches or pull requests

1 participant