summaryrefslogtreecommitdiff
path: root/config/sidekiq_queues.yml
Commit message (Collapse)AuthorAgeFilesLines
* Backport ee-40781-os-to-ceMicaël Bergeron2018-03-221-1/+0
|
* Merge remote-tracking branch 'origin/master' into 40781-os-to-ceMicaël Bergeron2018-03-081-0/+2
|\
| * Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda2018-03-061-1/+1
| | | | | | | | queue. This queue takes loqer precedence than pipeline_default.
| * Add object_storage queue to sidekiq_queues.ym. and correct queue name in ↵Shinya Maeda2018-03-061-0/+1
| | | | | | | | all_queues.yml.
| * Add plugin queue to sidekiq config [ci skip]Dmitriy Zaporozhets2018-02-261-0/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | fix the prepare_untracked_uploads_spec from using the EE schemaMicaël Bergeron2018-03-011-0/+1
| |
* | port the object storage to CEMicaël Bergeron2018-03-011-0/+1
| |
* | Merge remote-tracking branch 'origin/master' into ↵object-storage-ee-to-ce-backportKamil Trzciński2018-02-281-0/+1
|\ \ | |/ | | | | object-storage-ee-to-ce-backport
| * Add DNS verification to Pages custom domainsNick Thomas2018-02-231-0/+1
| |
* | Merge commit '4b92efd90cedaa0aff218d11fdce279701128bea' into ↵Kamil Trzciński2018-02-281-3/+2
|\ \ | |/ | | | | object-storage-ee-to-ce-backport
| * Remove unused queuesdm-dedicated-sidekiq-queuesDouwe Maan2017-12-131-3/+0
| |
| * Use a dedicated queue for each workerDouwe Maan2017-12-121-3/+5
| |
* | Merge commit '7fabc892f251740dbd9a4755baede662e6854870' into ↵Kamil Trzciński2018-02-281-0/+3
|\ \ | |/ | | | | object-storage-ee-to-ce-backport
| * BE for automatic pipeline when enabling Auto DevOpsMatija Čupić2017-11-281-0/+1
| | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38962
| * Rewrite the GitHub importer from scratchYorick Peterse2017-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this MR there were two GitHub related importers: * Github::Import: the main importer used for GitHub projects * Gitlab::GithubImport: importer that's somewhat confusingly used for importing Gitea projects (apparently they have a compatible API) This MR renames the Gitea importer to Gitlab::LegacyGithubImport and introduces a new GitHub importer in the Gitlab::GithubImport namespace. This new GitHub importer uses Sidekiq for importing multiple resources in parallel, though it also has the ability to import data sequentially should this be necessary. The new code is spread across the following directories: * lib/gitlab/github_import: this directory contains most of the importer code such as the classes used for importing resources. * app/workers/gitlab/github_import: this directory contains the Sidekiq workers, most of which simply use the code from the directory above. * app/workers/concerns/gitlab/github_import: this directory provides a few modules that are included in every GitHub importer worker. == Stages The import work is divided into separate stages, with each stage importing a specific set of data. Stages will schedule the work that needs to be performed, followed by scheduling a job for the "AdvanceStageWorker" worker. This worker will periodically check if all work is completed and schedule the next stage if this is the case. If work is not yet completed this worker will reschedule itself. Using this approach we don't have to block threads by calling `sleep()`, as doing so for large projects could block the thread from doing any work for many hours. == Retrying Work Workers will reschedule themselves whenever necessary. For example, hitting the GitHub API's rate limit will result in jobs rescheduling themselves. These jobs are not processed until the rate limit has been reset. == User Lookups Part of the importing process involves looking up user details in the GitHub API so we can map them to GitLab users. The old importer used an in-memory cache, but this obviously doesn't work when the work is spread across different threads. The new importer uses a Redis cache and makes sure we only perform API/database calls if absolutely necessary. Frequently used keys are refreshed, and lookup misses are also cached; removing the need for performing API/database calls if we know we don't have the data we're looking for. == Performance & Models The new importer in various places uses raw INSERT statements (as generated by `Gitlab::Database.bulk_insert`) instead of using Rails models. This allows us to bypass any validations and callbacks, drastically reducing the number of SQL queries and Gitaly RPC calls necessary to import projects. To ensure the code produces valid data the corresponding tests check if the produced rows are valid according to the model validation rules.
* | Merge commit '11c67e7c2f992299ff5918ce67995b73d1e0be6d' into ↵Kamil Trzciński2018-02-281-1/+3
|\ \ | |/ | | | | object-storage-ee-to-ce-backport
| * Specify defaults, fix policies, fix db columnsKamil Trzcinski2017-10-041-1/+1
| |
| * Merge branch 'master' into ↵Shinya Maeda2017-10-041-0/+2
| |\ | | | | | | | | | feature/sm/35954-create-kubernetes-cluster-on-gke-from-k8s-service
| | * Add support to migrate existing projects to Hashed Storage asynchashed-storage-migration-pathGabriel Mazetto2017-09-281-0/+2
| | |
| * | Introduce manage_cluster queue for sidekiq workersShinya Maeda2017-10-041-2/+1
| | |
| * | Replace reactive_cache by multipel sidekiq workersShinya Maeda2017-10-011-0/+2
| |/
| * Stop using Sidekiq for updating Key#last_used_atremove-use-key-workerYorick Peterse2017-09-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes things simpler as no scheduling is involved. Further we remove the need for running a SELECT + UPDATE just to get the key and update it, whereas we only need an UPDATE when setting last_used_at directly in a request. The added service class takes care of updating Key#last_used_at without using Sidekiq. Further it makes sure we only try to obtain a Redis lease if we're confident that we actually need to do so, instead of always obtaining it. We also make sure to _only_ update last_used_at instead of also updating updated_at. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36663
* | Merge branch 'jej/lfs-object-storage' into 'master'Douwe Maan2018-02-281-0/+1
|/ | | | | | | | Can migrate LFS objects to S3 style object storage Closes #2841 See merge request !2760
* Adjust sidekiq queues weights in queues config fileGrzegorz Bizon2017-08-211-3/+3
|
* Assign some CI/CD workers to pipeline default queueGrzegorz Bizon2017-08-211-1/+1
|
* Assign all pipeline workers to specific queuesGrzegorz Bizon2017-08-211-0/+3
|
* Simplify pipeline sidekiq queues naming schemeGrzegorz Bizon2017-08-211-1/+1
|
* Make it possible to check if worker uses a known queueGrzegorz Bizon2017-08-211-0/+1
|
* Move some after_create parts to worker to improve performance32844-issuables-performanceJarka Kadlecova2017-08-071-0/+2
|
* generate gpg signature on pushAlexis Reigel2017-07-271-0/+1
|
* perform signature update in sidekiq workerAlexis Reigel2017-07-271-0/+1
|
* Add the ability to perform background migrationsYorick Peterse2017-06-121-0/+1
| | | | | | | | Background migrations can be used to perform long running data migrations without these blocking a deployment procedure. See MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11854 for more information.
* Implement web hooks loggingAlexander Randa2017-05-251-2/+1
| | | | | | | | * implemented logging of project and system web hooks * implemented UI for user area (project hooks) * implemented UI for admin area (system hooks) * implemented retry of logged webhook * NOT imeplemented log remover
* Use worker to destroy namespaceless projects in post-deployToon Claes2017-05-101-0/+1
| | | | | | | | Destroying projects can be very time consuming. So instead of destroying them in the post-deploy, just schedule them and make Sidekiq do the hard work. They are scheduled in batches of 5000 records. This way the number of database requests is limited while also the amount data read to memory is limited.
* refactor code based on feedbackJames Lopez2017-05-051-1/+1
|
* fix sidekiq spec, add changelogJames Lopez2017-05-041-0/+1
|
* Remove the ClearDatabaseCacheWorkerNick Thomas2017-04-211-1/+0
|
* Add new ScheduleUpdateUserActivityWorker and UpdateUserActivityWorkerRémy Coutable2017-04-141-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Moved call of SystemHooksService from UpdateMergeRequestsWorker to ↵gpongelli2017-03-071-0/+1
| | | | GitPushServic…
* Add Upload model and UploadChecksumWorker workerRobert Speicher2017-03-061-0/+1
|
* Increase process_commit queue weight from 2 to 3blackst0ne2017-02-171-1/+1
|
* Fix specsKamil Trzcinski2017-01-311-0/+1
|
* Record and show last used date of SSH KeysVincent Wong2017-01-091-0/+1
| | | | | | | | Addresses: Issue #13810 1. Adds a last_used_at attribute to the Key table/model 2. Update a key's last_used_at whenever it gets used 3. Display how long ago an ssh key was last used
* Add a ReactiveCaching concern for use in the KubernetesServiceNick Thomas2016-12-191-0/+1
|
* Precalculate user's authorized projects in databaseAhmad Sherif2016-11-181-0/+1
| | | | Closes #23150
* Merge branch '21076-deleted-merged-branches' into 'master' Douwe Maan2016-11-151-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add button to delete all merged branches ## What does this MR do? It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs. **Note** ~~This MR is WIP until MR !6408 is merged.~~ ## Are there points in the code the reviewer needs to double check? The UX of the actual "Delete merged branches" button. ## Why was this MR needed? Fixes #21076 ## Screenshots ![Branches page without "Delete all merged" button](/uploads/3a2936a83c3547a0fce92a74af880a2d/Screen_Shot_2016-10-17_at_20.06.30.png) Before: ![Screen_Shot_2016-10-17_at_20.07.11](/uploads/55efcebf4e0a45dbfc70ba4a11ca152c/Screen_Shot_2016-10-17_at_20.07.11.png) After: ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #21076 See merge request !6449
| * Add button to delete all merged branchesToon Claes2016-11-091-0/+1
| | | | | | | | | | | | | | | | It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs. Fixes #21076.
* | Process commits in a separate workerprocess-commits-using-sidekiqYorick Peterse2016-11-071-0/+1
|/ | | | | | | | | | | | | This moves the code used for processing commits from GitPushService to its own Sidekiq worker: ProcessCommitWorker. Using a Sidekiq worker allows us to process multiple commits in parallel. This in turn will lead to issues being closed faster and cross references being created faster. Furthermore by isolating this code into a separate class it's easier to test and maintain the code. The new worker also ensures it can efficiently check which issues can be closed, without having to run numerous SQL queries for every issue.
* Fix bug where e-mails were not being sent out via SidekiqStan Hu2016-10-211-0/+1
| | | | | | | | | | By default, ActionMailer uses the "mailers" queue, but this entry was not included in the list of queues for Sidekiq to use. For more details: * https://github.com/plataformatec/devise/wiki/How-To:-Send-devise-emails-in-background-(Resque,-Sidekiq-and-Delayed::Job) * http://guides.rubyonrails.org/active_job_basics.html
* Re-organize queues to use for Sidekiqseparate-sidekiq-queuesYorick Peterse2016-10-211-0/+46
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