gitlab-org--gitlab-foss/doc/development
Yorick Peterse 97731760d7
Re-organize queues to use for Sidekiq
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
2016-10-21 18:17:07 +02:00
..
README.md Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
adding_database_indexes.md Added documentation on adding database indexes 2016-08-11 14:22:50 +02:00
architecture.md Add "GitLab team members only" to diagram link 2016-06-28 03:12:26 +00:00
ci_setup.md Fix dead links in the docs 2016-06-26 12:43:10 +09:00
code_review.md Fix typo and add he MWBS accronym for "Merge When Build Succeeds" 2016-10-07 16:17:28 +02:00
db_dump.md Fix typos in all docs [skip ci] 2015-11-24 02:19:17 +03:00
doc_styleguide.md Merge branch 'master' into 'docs/change-docs-reviewers' 2016-10-16 18:16:50 +00:00
frontend.md Document Capybara errors from es6 in es5 file. 2016-10-12 19:00:38 +02:00
gitlab_architecture_diagram.png optimize png images losslessly using zopflipng 2016-06-29 19:22:15 +08:00
gitlab_diagram_overview.odg
gotchas.md Remove CHANGELOG and fix typo 2016-08-04 12:30:27 +02:00
instrumentation.md Document how to track custom events 2016-09-12 17:41:45 +02:00
licensing.md Added CC0 license to list of licenses 2016-09-29 17:00:21 -04:00
merge_request_performance_guidelines.md Added performance guidelines for new MRs 2016-08-22 14:32:25 +02:00
migration_style_guide.md Link to the "What requires downtime?" page from the Migration Style Guide 2016-10-02 20:36:45 +01:00
newlines_styleguide.md Clarify blank line rule in newlines_styleguide.md 2016-08-26 06:12:30 +00:00
omnibus.md
performance.md Merge branch 'dz-rename-user-routes' into 'master' 2016-10-17 20:47:46 +02:00
profiling.md Updated profiling guides for Sherlock 2015-11-09 14:29:10 +01:00
rake_tasks.md Add 'run tests' docs from GDK 2016-08-05 17:19:37 +02:00
scss_styleguide.md SCSS Style Guide fixes. 2016-03-23 14:39:12 -06:00
shared_files.md Clarify puppies 2015-10-26 14:28:31 +01:00
shell_commands.md Update Shell Commands doc for configurable git binary path 2015-11-03 17:10:17 -05:00
sidekiq_debugging.md
sidekiq_style_guide.md Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
sql.md Added basic SQL guidelines 2016-03-08 11:28:50 +01:00
testing.md Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
ui_guide.md Add reference to product map. 2016-08-11 10:11:17 +00:00
what_requires_downtime.md Mention add_column_with_default in downtime guide 2016-08-10 11:09:53 +02:00

README.md

Development

Outside of docs

Styleguides

Process

Backend howtos

Databases

Compliance