Commit d7d6bb11 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'JonstonChan-fix-docker-shared-memory-docs' into 'master'

Docs: fix units on Docker shared memory documentation

See merge request gitlab-org/gitlab!69031
parents a92bb463 6ded1dd1
...@@ -621,7 +621,7 @@ variety of statistics on the health and performance of GitLab. The files ...@@ -621,7 +621,7 @@ variety of statistics on the health and performance of GitLab. The files
required for this gets written to a temporary file system (like `/run` or required for this gets written to a temporary file system (like `/run` or
`/dev/shm`). `/dev/shm`).
By default, Docker allocates 64Mb to the shared memory directory (mounted at By default, Docker allocates 64MB to the shared memory directory (mounted at
`/dev/shm`). This is insufficient to hold all the Prometheus metrics related `/dev/shm`). This is insufficient to hold all the Prometheus metrics related
files generated, and will generate error logs like the following: files generated, and will generate error logs like the following:
...@@ -636,7 +636,7 @@ writing value to /dev/shm/gitlab/sidekiq/histogram_sidekiq_0-0.db failed with un ...@@ -636,7 +636,7 @@ writing value to /dev/shm/gitlab/sidekiq/histogram_sidekiq_0-0.db failed with un
``` ```
Other than disabling the Prometheus Metrics from the Admin page, the recommended Other than disabling the Prometheus Metrics from the Admin page, the recommended
solution to fix this problem is to increase the size of shm to at least 256Mb. solution to fix this problem is to increase the size of shared memory to at least 256MB.
If using `docker run`, this can be done by passing the flag `--shm-size 256m`. If using `docker run`, this can be done by passing the flag `--shm-size 256m`.
If using a `docker-compose.yml` file, the `shm_size` key can be used for this If using a `docker-compose.yml` file, the `shm_size` key can be used for this
purpose. purpose.
......
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