Describe your question in as much detail as possible:
I’m setting concurrency request to “4” and global concurrent to “8”. Despite this, when I’m starting the gitlab-runner pod, I get the following error:
WARNING: The specified runner request concurrency (4) is larger than the current global concurrent limit (1). The global concurrent limit will not be increased and takes precedence.
-
What version are you on? Are you using self-managed or GitLab.com?
- GitLab (Hint:
/help
): 16.3.4 - Runner (Hint:
/admin/runners
): 16.5.0
- GitLab (Hint:
-
Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml)
This is is the content of /home/gitlab-runner/.gitlab-runner/config.toml
:
concurrent = 4
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "gitlab-ci-runner-d8c589f68-2t8bq"
request_concurrency = 4
url = "https://git.example.com"
id = 33
token = "<token>"
token_obtained_at = 2023-10-24T12:47:56Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "kubernetes"
MaxUploadedArchiveSize = 0
[runners.kubernetes]
host = ""
bearer_token_overwrite_allowed = false
image = "registry.example.com/open/docker-ci:6534e148-62d3c4ae"
namespace = "kube-gitlab-runners"
namespace_overwrite_allowed = ""
privileged = true
pull_policy = ["if-not-present"]
node_selector_overwrite_allowed = ""
image_pull_secrets = ["regcred"]
helper_image = "gitlab/gitlab-runner-helper:x86_64-v16.5.0"
terminationGracePeriodSeconds = 10
poll_interval = 5
poll_timeout = 360
pod_labels_overwrite_allowed = ""
service_account_overwrite_allowed = ""
pod_annotations_overwrite_allowed = ""
[runners.kubernetes.pod_security_context]
[runners.kubernetes.init_permissions_container_security_context]
[runners.kubernetes.build_container_security_context]
[runners.kubernetes.helper_container_security_context]
[runners.kubernetes.service_container_security_context]
[runners.kubernetes.volumes]
[runners.kubernetes.dns_config]
[runners.kubernetes.node_selector]
"environment" = "staging"
[runners.cache]
Type = "s3"
ServerAddress = "minio.live.svc.i.example.com"
AccessKey = "<user>"
SecretKey = "<key>"
BucketName = "runners-cache"
Insecure = true
Path = "kube-runners"
Shared = true
- What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
I’ve added a configmap for a file that mounts over /etc/gitlab-runner/config.toml in order to change the global concurrency to 8, but this doesn’t seem have any affect:
config.toml: |
concurrent = 8
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800