revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.
https://readthedocs.org/projects/django-health-check/
MIT License
1.22k stars 191 forks source link

Add support for database specific health checks #431

Open HanaPoulpe opened 3 months ago

HanaPoulpe commented 3 months ago

Enables parameterised DatabaseBackend with specific database name like DatabaseBackend[secondary].

Larger Django application can use specific databases to handle specific part of the application, some database might be required at application start-up while other are only used by non-vital part of the application.

This change allow a database per database health check configuration.

Part 1 of 3 for Support multi Database Health Checks