Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run multiple runners on the same host

kalib March 21, 2022

Is it possible to run more than one runner in the same host? Is it just a matter of creating the runner on the bitbucket Settings / Runners page and copying the docker commands and running them on the same VM? I wonder if that would work without any problems since bb runners are mounting filesystem folders such as tmp, docker.sock, etc..  Wondering if there would be any conflicts when running more than one runner in the same VM.

 

1 answer

1 accepted

0 votes
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2022

Hi @kalib 

G'Day!

We support multiple runners on a single host as long as your host has enough disk and memory spaces. 

To do this, basically create a new runner in the UI and copy then paste the commands in your host machine. 

It's best to tag each runner accordingly so that you don't get confused since it's on the same host machine.

Hope this helps

Cheers,
Syahrul

Felipe Rodriguez
Contributor
November 5, 2024

Hi @Syahrul ,

Thanks for your answer.

I understand that the tag is used to tell a pipeline to use one runner or another... is there a "smart" way to balance between runners?

Thanks, 

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2024

Hey @Felipe Rodriguez 

What do you mean by a smart way of balancing? Are you looking into scaling your runner automatically? If yes, then I believe Runner autoscaller is what you are looking for.

Regards,
Syahrul

Like Felipe Rodriguez likes this
Felipe Rodriguez
Contributor
November 5, 2024

This is exactly what I was looking for, thank you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events