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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
068a1938
Commit
068a1938
authored
Sep 14, 2020
by
Qingyu Zhao
Committed by
Mayra Cabrera
Sep 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Daemon Memory Killer be the default for Sidekiq
parent
8ef94193
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
changelogs/unreleased/232765-make-daemon-memory-killer-default-for-sidekiq.yml
.../232765-make-daemon-memory-killer-default-for-sidekiq.yml
+5
-0
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+1
-1
doc/administration/operations/sidekiq_memory_killer.md
doc/administration/operations/sidekiq_memory_killer.md
+2
-2
doc/user/gitlab_com/index.md
doc/user/gitlab_com/index.md
+1
-1
No files found.
changelogs/unreleased/232765-make-daemon-memory-killer-default-for-sidekiq.yml
0 → 100644
View file @
068a1938
---
title
:
Make Daemon Memory Killer be the default for Sidekiq
merge_request
:
41847
author
:
type
:
other
config/initializers/sidekiq.rb
View file @
068a1938
...
...
@@ -18,7 +18,7 @@ queues_config_hash[:namespace] = Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE
enable_json_logs
=
Gitlab
.
config
.
sidekiq
.
log_format
==
'json'
enable_sidekiq_memory_killer
=
ENV
[
'SIDEKIQ_MEMORY_KILLER_MAX_RSS'
].
to_i
.
nonzero?
use_sidekiq_daemon_memory_killer
=
ENV
[
"SIDEKIQ_DAEMON_MEMORY_KILLER"
]
.
to_i
.
nonzero?
use_sidekiq_daemon_memory_killer
=
ENV
.
fetch
(
"SIDEKIQ_DAEMON_MEMORY_KILLER"
,
1
)
.
to_i
.
nonzero?
use_sidekiq_legacy_memory_killer
=
!
use_sidekiq_daemon_memory_killer
Sidekiq
.
configure_server
do
|
config
|
...
...
doc/administration/operations/sidekiq_memory_killer.md
View file @
068a1938
...
...
@@ -26,8 +26,8 @@ run as a process group leader (e.g., using `chpst -P`). If using Omnibus or the
The MemoryKiller is controlled using environment variables.
-
`SIDEKIQ_DAEMON_MEMORY_KILLER`
: defaults to
0. When set to 1
, the MemoryKiller
works in _
daemon_ mode. Otherwise, the MemoryKiller works in _legacy
_ mode.
-
`SIDEKIQ_DAEMON_MEMORY_KILLER`
: defaults to
1. When set to 0
, the MemoryKiller
works in _
legacy_ mode. Otherwise, the MemoryKiller works in _daemon
_ mode.
In _legacy_ mode, the MemoryKiller checks the Sidekiq process RSS after each job.
...
...
doc/user/gitlab_com/index.md
View file @
068a1938
...
...
@@ -413,7 +413,7 @@ and the following environment variables:
| Setting | GitLab.com | Default |
|-------- |----------- |-------- |
|
`SIDEKIQ_DAEMON_MEMORY_KILLER`
| - |
-
|
|
`SIDEKIQ_DAEMON_MEMORY_KILLER`
| - |
`1`
|
|
`SIDEKIQ_MEMORY_KILLER_MAX_RSS`
|
`2000000`
|
`2000000`
|
|
`SIDEKIQ_MEMORY_KILLER_HARD_LIMIT_RSS`
| - | - |
|
`SIDEKIQ_MEMORY_KILLER_CHECK_INTERVAL`
| - |
`3`
|
...
...
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