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
Léo-Paul Géneau
gitlab-ce
Commits
432148b6
Commit
432148b6
authored
Jan 10, 2019
by
Abubakar Siddiq Ango
Committed by
Achilleas Pipinellis
Jan 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting Unicorn Worker memory limit in gitlab.rb
parent
840e7e0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
doc/administration/operations/unicorn.md
doc/administration/operations/unicorn.md
+11
-1
No files found.
doc/administration/operations/unicorn.md
View file @
432148b6
...
@@ -60,7 +60,17 @@ Unicorn master then automatically replaces the worker process.
...
@@ -60,7 +60,17 @@ Unicorn master then automatically replaces the worker process.
This is a robust way to handle memory leaks: Unicorn is designed to handle
This is a robust way to handle memory leaks: Unicorn is designed to handle
workers that 'crash' so no user requests will be dropped. The
workers that 'crash' so no user requests will be dropped. The
unicorn-worker-killer gem is designed to only terminate a worker process _in
unicorn-worker-killer gem is designed to only terminate a worker process _in
between requests_, so no user requests are affected.
between requests_, so no user requests are affected. You can set the minimum and
maximum memory threshold (in bytes) for the Unicorn worker killer by
setting the following values
`/etc/gitlab/gitlab.rb`
:
```
ruby
unicorn
[
'worker_memory_limit_min'
]
=
"400 * 1 << 20"
unicorn
[
'worker_memory_limit_max'
]
=
"650 * 1 << 20"
```
Otherwise, you can set the
`GITLAB_UNICORN_MEMORY_MIN`
and
`GITLAB_UNICORN_MEMORY_MIN`
[
environment variables
](
../environment_variables.md
)
.
This is what a Unicorn worker memory restart looks like in unicorn_stderr.log.
This is what a Unicorn worker memory restart looks like in unicorn_stderr.log.
You see that worker 4 (PID 125918) is inspecting itself and decides to exit.
You see that worker 4 (PID 125918) is inspecting itself and decides to exit.
...
...
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