- 17 May, 2021 1 commit
-
-
Sean McGivern authored
We now allow Sidekiq worker routing to be configured by administrators. For example, they can say 'all jobs go to the default queue', or 'project export and import workers share a queue'. Right now, the only really useful case is to re-route jobs to the default queue, but we will support other options in future. Migrating this sounds simple: listen to the old and new queues, update the worker routing, wait for the old queue to be empty, and stop listening to the old queue. But there's a catch: Sidekiq maintains two sorted sets with jobs that are to be run in the future. There is the scheduled set (for jobs that use `perform_in` or `perform_at` or similar, where we choose to run a job in the future) and the retry set (after failing, a job will get retried with some back-off). Both of those sets are 'global' - there isn't one for each possible destination queue. That means that the set entries themselves contain information about their destination queue. And in the migration case above, the destination queue might be the old queue and no longer listened to. This adds two Rake tasks (one for the retry set and one for the scheduled set) to allow administrators to rewrite the job data in those sorted sets It uses these Redis commands: 1. ZCARD to get the initial size of the set, for showing to the operator. This is O(1) and is called once. 2. ZSCAN to iterate over the sets. This is O(1) per call, and provides useful guarantees about iterating over a set that may be changing as it's operated on. 3. ZREM to remove the old job hash. This is O(log(N)) per call, where N is the number of elements in the set. 4. ZADD to add the new job hash with the new queue name. This is also O(log(N)) per call. ZREM and ZADD will each be called once per item to be migrated, so there may be many invocations of these commands during this task's run. Changelog: added
-
- 12 May, 2021 39 commits
-
-
Shinya Maeda authored
Allow build stage to be disabled See merge request gitlab-org/gitlab!48638
-
Shane Davidson authored
-
Marcin Sedlak-Jakubowski authored
Remove Starter references from Issues API page See merge request gitlab-org/gitlab!61537
-
Marcin Sedlak-Jakubowski authored
Remove Starter reference from Analytics page See merge request gitlab-org/gitlab!61542
-
Craig Norris authored
-
David O'Regan authored
Merge branch '327350-update-checkbox-styles-in-group-settings-general-permissions-lfs-2fa' into 'master' Update checkbox styles in group settings "Permissions, LFS, 2FA panel See merge request gitlab-org/gitlab!61294
-
Sean McGivern authored
Restructure Finding Evidence See merge request gitlab-org/gitlab!61066
-
Markus Koller authored
Project Import: Fix download from remote object storage See merge request gitlab-org/gitlab!61376
-
Marcia Ramos authored
Improve Kubernetes agent documentation See merge request gitlab-org/gitlab!60712
-
Philip Welz authored
-
Marcia Ramos authored
Improve review guidelines for community contributions See merge request gitlab-org/gitlab!59006
-
Markus Koller authored
-
Phil Hughes authored
Merge branch '293755-add-a-setting-for-allowing-disallowing-duplicate-generic-package-uploads' into 'master' Setting for duplicate generic package uploads See merge request gitlab-org/gitlab!61339
-
Nicolò Maria Mezzopera authored
-
Thong Kuah authored
Prevent error when promoting issues to epics See merge request gitlab-org/gitlab!60860
-
Shinya Maeda authored
Remove unnecessary shared_examples block See merge request gitlab-org/gitlab!61528
-
Sean McGivern authored
Add codequality reports endpoint to graphql See merge request gitlab-org/gitlab!61383
-
Maxime Orefice authored
This commit adds our code quality report to graphql. We are now able to aggregate several code quality reports at the pipeline level. Changelog: added
-
Sean McGivern authored
Cache entities for MR API [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!61067
-
Sean McGivern authored
Rename Service model to Integration [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!61210
-
Marcin Sedlak-Jakubowski authored
Add deploy metric docs See merge request gitlab-org/gitlab!54601
-
Larissa Lane authored
-
🤖 GitLab Bot 🤖 authored
Update Gitaly version See merge request gitlab-org/gitlab!61570
-
Sean McGivern authored
Enable the invite a group modal rspec tests [RUN ALL RSPEC] See merge request gitlab-org/gitlab!60177
-
Jackie Fraser authored
Adds feature flag enabled test coverage for "Invite a group" rspec tests that were usinge the members page invite group form.
-
Bob Van Landuyt authored
Delete all label links asynchronously when issuable gets destroyed [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!60487
-
Nick Thomas authored
Turn compare_repo_dropdown default on See merge request gitlab-org/gitlab!60705
-
Brandon Labuschagne authored
Enable admin users Vue table by default See merge request gitlab-org/gitlab!54085
-
Jiaan Louw authored
-
Nicolò Maria Mezzopera authored
Add success notification to validation alert See merge request gitlab-org/gitlab!61562
-
Vitaly Slobodin authored
-
peterhegman authored
So all checkboxes are consistently styled
-
Achilleas Pipinellis authored
Merge branch '329831-docs-update-to-clarify-resetting-geo-secondary-node-replication-procedure' into 'master' Resolve "Docs update add PostgresSQL start" See merge request gitlab-org/gitlab!61560
-
Alexander Strachan authored
-
GitLab Release Tools Bot authored
-
Kushal Pandya authored
Remove unused help page entry point See merge request gitlab-org/gitlab!61371
-
Kushal Pandya authored
Add Calendly invite link to survey response page [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!61146
-
Alex Buijs authored
-
Phil Hughes authored
Pass shared_visible_only param on the FE See merge request gitlab-org/gitlab!61428
-