Make sidekiq defer_on_database_health_signal to delay incrementally
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
defer_on_database_health_signal can be used to defer sidekiq jobs, if the health-check indicators signals to stop, it re-queues the jobs at a regular interval (default: 5s).
But this can quickly put a heavy load on sidekiq by queuing a lot of jobs, if the db health indicators are not good for a longer time. We can increase the delay on further attempts to avoid the load.
Edited by 🤖 GitLab Bot 🤖