Update default initializer value for Sidekiq routing_rules
NOTE
This MR is closed due to broken test env not being able to pass qa-reliable
job. New MR: !97908 (merged)
What does this MR do and why?
In gitlab-com/gl-infra/scalability#1491 (closed), we need to update self-managed instances to use a simple routing_rules
by default, which is to route all jobs to the default
queue. Instead of updating all other self-managed instances (ie Omnibus and Helm Chart), updating the initializer file here only requires one change.
As a side effect, some tests are failing due to these tests relying on queue name generated based on the Worker name. The affected tests have been updated to cater to this new default.
Related MRs
Below MRs address the default config for Sidekiq servers to watch default, mailers
queues only in respective installations.
Screenshots or screen recordings
routing_rules
defined, the value is unchanged.
When there is
routing_rules
is an empty array, it will be initialized to [["*", "default"]
When
routing_rules
doesn't exist, it will be initialized to [["*", "default"]
When
How to set up and validate locally
- Change the
routing_rules
inconfig/gitlab.yml
- Start
gdk rails cosnole
- Check
Settings['sidekiq']['routing_rules']
as in screenshots above.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.