97731760d7
Dumping too many jobs in the same queue (e.g. the "default" queue) is a dangerous setup. Jobs that take a long time to process can effectively block any other work from being performed given there are enough of these jobs. Furthermore it becomes harder to monitor the jobs as a single queue could contain jobs for different workers. In such a setup the only reliable way of getting counts per job is to iterate over all jobs in a queue, which is a rather time consuming process. By using separate queues for various workers we have better control over throughput, we can add weight to queues, and we can monitor queues better. Some workers still use the same queue whenever their work is related. For example, the various CI pipeline workers use the same "pipeline" queue. This commit includes a Rails migration that moves Sidekiq jobs from the old queues to the new ones. This migration also takes care of doing the inverse if ever needed. This does require downtime as otherwise new jobs could be scheduled in the old queues after this migration completes. This commit also includes an RSpec test that blacklists the use of the "default" queue and ensures cron workers use the "cronjob" queue. Fixes gitlab-org/gitlab-ce#23370 |
||
---|---|---|
.. | ||
concerns | ||
repository_check | ||
admin_email_worker.rb | ||
build_coverage_worker.rb | ||
build_email_worker.rb | ||
build_finished_worker.rb | ||
build_hooks_worker.rb | ||
build_success_worker.rb | ||
clear_database_cache_worker.rb | ||
delete_user_worker.rb | ||
email_receiver_worker.rb | ||
emails_on_push_worker.rb | ||
expire_build_artifacts_worker.rb | ||
expire_build_instance_artifacts_worker.rb | ||
git_garbage_collect_worker.rb | ||
gitlab_shell_worker.rb | ||
group_destroy_worker.rb | ||
import_export_project_cleanup_worker.rb | ||
irker_worker.rb | ||
merge_worker.rb | ||
new_note_worker.rb | ||
pipeline_hooks_worker.rb | ||
pipeline_metrics_worker.rb | ||
pipeline_process_worker.rb | ||
pipeline_success_worker.rb | ||
pipeline_update_worker.rb | ||
post_receive.rb | ||
project_cache_worker.rb | ||
project_destroy_worker.rb | ||
project_export_worker.rb | ||
project_service_worker.rb | ||
project_web_hook_worker.rb | ||
prune_old_events_worker.rb | ||
remove_expired_group_links_worker.rb | ||
remove_expired_members_worker.rb | ||
repository_archive_cache_worker.rb | ||
repository_fork_worker.rb | ||
repository_import_worker.rb | ||
requests_profiles_worker.rb | ||
stuck_ci_builds_worker.rb | ||
system_hook_worker.rb | ||
trending_projects_worker.rb | ||
update_merge_requests_worker.rb |