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

Can we assign task to a group of workers ? #29

Open
thibaultduponchelle opened this issue Jan 4, 2021 · 7 comments
Open

Can we assign task to a group of workers ? #29

thibaultduponchelle opened this issue Jan 4, 2021 · 7 comments
Labels
question Further information is requested

Comments

@thibaultduponchelle
Copy link
Contributor

thibaultduponchelle commented Jan 4, 2021

More on sparrow side, but can we assign a project to a group of workers, let's say "big nodes"... And some workers defined elsewhere as being "big nodes" can handle the build ?

@melezhik melezhik added the question Further information is requested label Jan 5, 2021
@melezhik
Copy link
Owner

melezhik commented Jan 5, 2021

so, you want dynamically resolve a worker name/type ( rather then statically through a sparky.yaml ), right? If so, when do and how do you want to do this? if you please give me more context?

if this something could be achieved by FTP mechanism? A "supplemental" web application which handle a request will make a decision (when write up a tigger file) about what worker a build has to be run on ...

@melezhik melezhik changed the title Can we assign task to a group of worker ? Can we assign task to a group of workers ? Jan 5, 2021
@thibaultduponchelle
Copy link
Contributor Author

thibaultduponchelle commented Jan 5, 2021

Not dynamically, more dumbly like a round robin.

But the question is more, is there a feature in Sparrow6 to run a job:

  • On a all host defined in a group
  • On one host of the group

@melezhik
Copy link
Owner

melezhik commented Jan 5, 2021

But the question is more, is there a feature in Sparrow6 to run a job:
On a all host defined in a group

it's possible to run sparrowdo scenario on group of hosts, by using a Sparky backend using hosts file syntax.

It's even possible to have tags semantic allowing sub grouping within groups and assigning named attributes to hosts ( ala chef nodes attributes ) ...

We gradually uncover all the Sparky/Sparrowdo/Sparrow treasures through these tickets, ha-ha 😄

@thibaultduponchelle
Copy link
Contributor Author

Ahah yes !

This is great

@melezhik
Copy link
Owner

melezhik commented Jan 5, 2021

it's of course not a pure Sparky solution, but still does more or less groups of hosts asynchronous deployment. It's quite simple right now, not even a round robin, just a raku rand function, that is it - https://github.com/melezhik/sparrowdo/blob/master/bin/sparrowdo#L281 , anyway it does it's job ...

@melezhik
Copy link
Owner

Now with Sparky Job API, cluster mode you can run certain tasks on certain workers, please see https://github.com/melezhik/sparky#cluster-jobs

@thibaultduponchelle
Copy link
Contributor Author

Looks good to me 😃

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

No branches or pull requests

2 participants