monolith: reduce gitlab runner concurrency, no longer main runner
This commit is contained in:
parent
de117167f2
commit
47f187c3b5
1 changed files with 27 additions and 18 deletions
|
|
@ -15,27 +15,36 @@ in
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
services.gitlab-runner = {
|
services.gitlab-runner = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.concurrent = 4;
|
settings = {
|
||||||
|
concurrent = 2;
|
||||||
|
};
|
||||||
services = {
|
services = {
|
||||||
# runner for building in docker via host's nix-daemon
|
# # runner for building in docker via host's nix-daemon
|
||||||
# nix store will be readable in runner, might be insecure
|
# # nix store will be readable in runner, might be insecure
|
||||||
thoreb-telemetria-nix = mkNixRunner config.sops.secrets."gitlab-runners/thoreb-telemetria-nix".path;
|
# thoreb-telemetria-nix = mkNixRunner config.sops.secrets."gitlab-runners/thoreb-telemetria-nix".path;
|
||||||
thoreb-itinerario-nix = mkNixRunner config.sops.secrets."gitlab-runners/thoreb-itinerario-nix".path;
|
# thoreb-itinerario-nix = mkNixRunner config.sops.secrets."gitlab-runners/thoreb-itinerario-nix".path;
|
||||||
|
|
||||||
wopus-gitlab-nix = mkNixRunnerFull {
|
wopus-gitlab-nix =
|
||||||
authenticationTokenConfigFile = config.sops.secrets."gitlab-runners/wopus-gitlab-nix".path;
|
(mkNixRunnerFull {
|
||||||
# nixCacheSshPrivateKeyPath = config.sops.secrets."gitlab-runners/wopus-ssh-nix-cache-pk".path;
|
authenticationTokenConfigFile = config.sops.secrets."gitlab-runners/wopus-gitlab-nix".path;
|
||||||
# nixCacheSshPublicKeyPath = config.sops.secrets."gitlab-runners/wopus-ssh-nix-cache-pub".path;
|
# nixCacheSshPrivateKeyPath = config.sops.secrets."gitlab-runners/wopus-ssh-nix-cache-pk".path;
|
||||||
};
|
# nixCacheSshPublicKeyPath = config.sops.secrets."gitlab-runners/wopus-ssh-nix-cache-pub".path;
|
||||||
|
})
|
||||||
|
// {
|
||||||
|
requestConcurrency = 2;
|
||||||
|
};
|
||||||
|
|
||||||
default = {
|
# default = ({
|
||||||
# File should contain at least these two variables:
|
# # File should contain at least these two variables:
|
||||||
# `CI_SERVER_URL`
|
# # `CI_SERVER_URL`
|
||||||
# `CI_SERVER_TOKEN`
|
# # `CI_SERVER_TOKEN`
|
||||||
authenticationTokenConfigFile = config.sops.secrets."gitlab-runners/docker-images-token".path;
|
# authenticationTokenConfigFile = config.sops.secrets."gitlab-runners/docker-images-token".path;
|
||||||
dockerImage = "debian:stable";
|
# dockerImage = "debian:stable";
|
||||||
dockerPullPolicy = "if-not-present";
|
# dockerPullPolicy = "if-not-present";
|
||||||
};
|
# })
|
||||||
|
# // {
|
||||||
|
# requestConcurrency = 4;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.gitlab-runner.serviceConfig.Nice = 10;
|
systemd.services.gitlab-runner.serviceConfig.Nice = 10;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue