Commit 03928cb5 authored by Paul Nicholson's avatar Paul Nicholson Committed by Jason Plum

Expose unicorn memory limits via chart values

parent ca29f146
---
title: Expose unicorn memory limits via chart values
merge_request: 738
author: Paul Nicholson
type: added
......@@ -57,8 +57,8 @@ data:
defined?(::Prometheus::Client.reinitialize_on_pid_change) && Prometheus::Client.reinitialize_on_pid_change
end
ENV['GITLAB_UNICORN_MEMORY_MIN'] = (400 * 1 << 20).to_s
ENV['GITLAB_UNICORN_MEMORY_MAX'] = (650 * 1 << 20).to_s
ENV['GITLAB_UNICORN_MEMORY_MIN'] = ({{ int .Values.memory.min }} * 1 << 20).to_s
ENV['GITLAB_UNICORN_MEMORY_MAX'] = ({{ int .Values.memory.max }} * 1 << 20).to_s
gitlab.yml.erb: |
production: &base
......
......@@ -38,6 +38,9 @@ ingress:
annotations: {}
workerProcesses: 2
workerTimeout: 60
memory:
min: 400
max: 650
hpa:
targetAverageValue: 1
workhorse:
......
......@@ -41,6 +41,8 @@ to the `helm install` command using the `--set` flags.
| `image.tag` | | Unicorn image tag |
| `init.image` | `busybox` | initContainer image |
| `init.tag` | `latest` | initContainer image tag |
| `memory.min` | `400` | The minimum memory threshold (in megabytes) for the Unicorn worker killer |
| `memory.max` | `650` | The maximum memory threshold (in megabytes) for the Unicorn worker killer |
| `metrics.enabled` | `true` | Toggle Prometheus metrics exporter |
| `minio.bucket` | `git-lfs` | Name of storage bucket, when using Minio |
| `minio.port` | `9000` | Port for Minio service |
......@@ -133,6 +135,12 @@ you can set the body size with either of the following two parameters too:
- `gitlab.unicorn.ingress.annotations."nginx\.ingress\.kubernetes\.io/proxy-body-size"`
- `global.ingress.annotations."nginx\.ingress\.kubernetes\.io/proxy-body-size"`
## Memory
Memory thresholds for the [unicorn-worker-killer](https://docs.gitlab.com/ee/administration/operations/unicorn.html#unicorn-worker-killer)
can be customized using the `memory.min` and `memory.max` chart values. While the default values are sane, you can increase (or lower)
these values to fine-tune them for your environment or troubleshoot performance issues.
## External Services
### Redis
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment