Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Principe of distributing of tasks among Semaphore Runners #2746

Open
klavik opened this issue Feb 14, 2025 · 2 comments
Open

Question: Principe of distributing of tasks among Semaphore Runners #2746

klavik opened this issue Feb 14, 2025 · 2 comments
Assignees
Labels

Comments

@klavik
Copy link

klavik commented Feb 14, 2025

Question

Hello, Guys! First of all thank you for such helpful opensource product. I really like it and want to use in my environment as a helpful instrument to run and control ansible playbooks.
So, now I'm trying to build setup with 1 "Semaphore Sever" and 2 "Semaphore Runners" with git repo for inventory and playbooks.
I'm stuck in understanding how balancing works for case with 2 or more SR? Documentation says "You can start multiple runners, and tasks will be randomly distributed among them." But my tests show that when I start 2 or more playbooks simultaneously using webui of SS, all of them go to only 1 SR from 2 connected. I set "infinite" for parallel setting in Runner.
Could you be so kind and explain the principe of distributing of tasks among SR?

I use 2.12.5

Related to

Documentation

@fiftin fiftin self-assigned this Feb 14, 2025
@fiftin
Copy link
Collaborator

fiftin commented Feb 14, 2025

Hi @klavik

Thank you for your question. Yes, you are right. Current logic a bit different and require improvement.

Currently if you have runner with "infinite" tasks all tasks can forwarded to it.

The logic will be improved in following releases.

Currently you can limit number of parallel tasks for runner to distribute tasks among runners.

@klavik
Copy link
Author

klavik commented Feb 18, 2025

Thanks a lot @fiftin. Now its clear. One more question about parallel setting of Runners. I tested that can change this setting using webUI, and can I adjust it in config.runner.json? If yes, could you give example of parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants