Skip to content

Allow disabling the sidekiq-cron poller

Alejandro Rodríguez requested to merge cron-jobs-disable-polling into master

What does this MR do and why?

In order to enqueue sidekiq-cron scheduled jobs, a poller runs in Sidekiq at a configurable interval (30 seconds by default) and retrieves all the cron jobs configured in redis. In a setup with multiple Sidekiq instances this can result in a significant amount of load in redis (see gitlab-com/gl-infra/scalability#1932 (closed)). We introduce a setting that allows disabling the sidekiq-cron poller per node.

In the future this will also enable having multiple Sidekiq clusters pointing at different redis instances, by disabling the sidekiq-cron poller in all but one of those clusters (see gitlab-com/gl-infra/scalability#1439).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports