Make sidekiq-cluster play well with Sidekiq 5.2.2+
Sidekiq 5.2.2 introduced a change (https://github.com/mperham/sidekiq/pull/3936/files) that prevents queue names from being duplicated. This breaks our current GitLab.com config because we have some sidekiq-cluster processes configured as the following: ```ruby sidekiq_cluster['queue_groups'] = ["process_commit,process_commit"] ``` To keep things backwards compatible, we now only pass unique queue names but scale the weights accordingly by the number of queues mentioned. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54253
显示
- ee/changelogs/unreleased/sh-fix-sidekiq-cluster-5-2-3.yml 5 个添加, 0 个删除ee/changelogs/unreleased/sh-fix-sidekiq-cluster-5-2-3.yml
- ee/lib/gitlab/sidekiq_cluster.rb 19 个添加, 3 个删除ee/lib/gitlab/sidekiq_cluster.rb
- ee/spec/lib/gitlab/sidekiq_cluster_spec.rb 11 个添加, 0 个删除ee/spec/lib/gitlab/sidekiq_cluster_spec.rb
想要评论请 注册 或 登录