How to run multiple gitlab-ci-runners?

h2459jl picture h2459jl · Mar 9, 2015 · Viewed 27.6k times · Source

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.

Answer

Marco van Neerbos picture Marco van Neerbos · Mar 10, 2016
  1. Yes you can setup multiple runners. See https://docs.gitlab.com/runner/ for more information
  2. You usually setup runners on a different box from your main gitlab instance. At least that is what I do. Omnibus GITLAB refers to the main system where your repos are maintained and accessible through the web UI. Runners are isolated processes (workers) that wait for new commits to be pushed and then execute the build.
  3. A good practice is to have multiple runners setup, dedicated to a particular technology. E.g. a dedicated runner for JAVA, NodeJS, Python, Ruby or PHP builds. If no runners show up in the UI, they are not registered correctly with your instance. See the documentation in #1