配置 运行ner 以同时 运行 多个作业

Configure runner to run multiple jobs at the same time

当有一个 gitlab 运行ner 服务于多个项目时,它只能 运行 一个 CI 管道,而其他项目管道必须排队。

是否可以从所有项目中并行创建一个 gitlab 运行ner 运行 管道?

我似乎在任何地方都找不到对此的配置说明。

我相信您正在寻找的配置选项是 concurrentlimit,您可以在 GitLab Runners config.toml 文件中进行更改。

来自documentation

  • concurrent:限制全局可以同时运行的作业数。使用所有定义的 运行ners 的作业的最高上限。 0 不代表无限

  • limit:限制此令牌可以同时处理的作业数。

config.toml 文件的位置:

  • /etc/gitlab-runner/config.toml on *nix systems when GitLab Runner is executed as root (this is also path for service configuration)
  • ~/.gitlab-runner/config.toml on *nix systems when GitLab Runner is executed as non-root
  • ./config.toml on other systems

也很有用issue