Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
1d3ada80
Commit
1d3ada80
authored
Nov 07, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation and CHANGELOG item.
parent
b95216aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
0 deletions
+37
-0
changelogs/unreleased/sidekiq-job-throttling.yml
changelogs/unreleased/sidekiq-job-throttling.yml
+4
-0
doc/administration/operations.md
doc/administration/operations.md
+1
-0
doc/administration/operations/img/sidekiq_job_throttling.png
doc/administration/operations/img/sidekiq_job_throttling.png
+0
-0
doc/administration/operations/sidekiq_job_throttling.md
doc/administration/operations/sidekiq_job_throttling.md
+32
-0
No files found.
changelogs/unreleased/sidekiq-job-throttling.yml
0 → 100644
View file @
1d3ada80
---
title
:
Added ability to throttle Sidekiq Jobs
merge_request
:
7292
author
:
Patricio Cano
doc/administration/operations.md
View file @
1d3ada80
# GitLab operations
-
[
Sidekiq MemoryKiller
](
operations/sidekiq_memory_killer.md
)
-
[
Sidekiq Job throttling
](
operations/sidekiq_job_throttling.md
)
-
[
Cleaning up Redis sessions
](
operations/cleaning_up_redis_sessions.md
)
-
[
Understanding Unicorn and unicorn-worker-killer
](
operations/unicorn.md
)
-
[
Moving repositories to a new location
](
operations/moving_repositories.md
)
doc/administration/operations/img/sidekiq_job_throttling.png
0 → 100644
View file @
1d3ada80
112 KB
doc/administration/operations/sidekiq_job_throttling.md
0 → 100644
View file @
1d3ada80
# Sidekiq Job throttling
> Note: Introduced with GitLab 8.14
When your GitLab installation needs to handle tens of thousands of background
jobs, it can be convenient to prioritize queues that need to be executed
immediately, e.g. user initiated actions like merging a Merge Request.
In order to accomplish this, you can limit the amount of workers that certain
slow running queues get can have available. This is what we call Sidekiq Job
Throttling. Depending on your infrastructure, you might have different slow
running queues, which is why you can choose which queues to throttle and by
how much you want to throttle them.
These settings are available in the Application Settings of your GitLab
installation.
![
Sidekiq Job Throttling
](
img/sidekiq_job_throttling.png
)
The throttle factor determines the maximum number of workers a queue can run on.
This value gets multiplied by
`:concurrency`
value set in the Sidekiq settings
and rounded up to the closest full integer.
So, for example, you set the
`:concurrency`
to 25 and the
`Throttling factor`
to
0.
1, the maximum workers assigned to the selected queues would be 3.
```
limit = (factor * Sidekiq.options[:concurrency]).ceil
```
After enabling the job throttling, you will need to restart your GitLab
instance, in order for the changes to take effect.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment