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

Support multi Database Health Checks #430

Open
3 tasks
HanaPoulpe opened this issue Jul 4, 2024 · 0 comments
Open
3 tasks

Support multi Database Health Checks #430

HanaPoulpe opened this issue Jul 4, 2024 · 0 comments

Comments

@HanaPoulpe
Copy link

Working with django applications that work across multiple database might require more detailed healthchecks (eg: 1 per database, read only checks)

These feels like a 3 changes:

  • Add a factory to create database backends subchecks DatabaseBackend[some_database] that checks RW permissions
  • Add a factory to create database backends subchecks DatabaseBackendRO[some_database] that checks RO permissions (useful if the application uses a read replica)
  • Add a factory to create migrations subchecks MigrationsHealthCheck[some_database] that checks that migration are applied to a specific database

This approach seems better than running existing checks on all databases by default, as it allows to separate database between what is required for an application as readiness checks and what is required for its liveness checks.

I can take the implementation, as I just had to build something similar on a project I work on.

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