diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-06 09:09:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-06 09:09:15 +0300 |
commit | 760ddae438828cf73c61f2ca1f4e1f4b9c1d5d2f (patch) | |
tree | 023aaff89705b8c85d67958d3aef75c2540a94af /doc/ci/caching | |
parent | e6f1de5a8fc0a18647d4ff8cff0a50988dcb8e99 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/caching')
-rw-r--r-- | doc/ci/caching/index.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/ci/caching/index.md b/doc/ci/caching/index.md index 7aeafce9352..15e8c617102 100644 --- a/doc/ci/caching/index.md +++ b/doc/ci/caching/index.md @@ -725,3 +725,16 @@ job B: Even if the `key` is different, the cached files might get "cleaned" before each stage if the jobs run on different runners in subsequent pipelines. + +### Concurrent runners missing local cache + +If you have configured multiple concurrent runners with the Docker executor, locally cached files might +not be present for concurrently-running jobs as you expect. The names of cache volumes are constructed +uniquely for each runner instance, so files cached by one runner instance are not found in the cache by another runner +instance. + +To share the cache between concurrent runners, you can either: + +- Use the `[runners.docker]` section of the runners' `config.toml` to configure a single mount point on the host that +is mapped to `/cache` in each container, preventing the runner from creating unique volume names. +- Use a distributed cache. |