Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run multiple gitlab-ci-runners?

Tags:

Well, very basic question but I just didn't find (good) documentation; here we go:

  • Can I setup/run several runners on the same server?
  • What means runner? Is this the (omnibus) installation or the processes I start with e.g. /opt/gitlab-runner/bin/runner?
  • Regarding /opt/gitlab-runner/bin/runner: does it make sense to start several such processes? (They don't show up individually under the 'Runners' tab in the gitlab-ci webview)

Thanks.

like image 216
h2459jl Avatar asked Mar 09 '15 15:03

h2459jl


People also ask

Can GitLab runner run multiple jobs?

One way to allow more jobs to run simultaneously is to simply register more runners. Each installation of GitLab Runner can register multiple distinct runner instances. They operate independently of each other and don't all need to refer to the same coordinating server.

How many GitLab-runners should I have?

Concurrency pipeline issue…..3 gitlab-runners running separately with default configuration (like above one) always make them happy.

Can a GitLab runner have multiple executors?

With GitLab, you can use different executors, depending on your needs: Shell. SSH. VirtualBox.


1 Answers

For anyone else trying to run multiple gitlab-runners on windows:

  • Download/Copy the gitlabrunner.exe to two different locations.
  • Register them in their seperate folders.
  • Install them and provide different names to the -n flag e.g:
gitlab-runner-windows-amd64.exe install -n dockerbuilder 
  • Start them using the same names with the -n flag.
like image 60
Klepto Avatar answered Sep 21 '22 04:09

Klepto