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

[ENHANCEMENT] Allow bastille to run commands on multiple jails in parallel instead of one after the other (serial). #756

Open
yancyb-ehit opened this issue Dec 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@yancyb-ehit
Copy link

Currently when running bastille, it only runs on one jail at a time. It would be nice if I could get them to run in parallel. This could greatly speed up some operations.

A switch with a number might work. The number being the number of jails ran in parallel. Default being 1, so current behavior is maintained.

I suppose I could call bastille in some kind of xorg or script per host and run it in parallel that way. I would think a switch or something similar so consistency is maintained would be better.

@yancyb-ehit yancyb-ehit added the enhancement New feature or request label Dec 4, 2024
@bmac2
Copy link
Collaborator

bmac2 commented Dec 12, 2024

not sure this is really an option. In the past when this was discussed, we have no way in a bash shell to spin up parallel processes. IF I am wrong on this, or someone has an idea of how to do it in parallel please jump in and correct me.

@cedwards @yaazkal

@yaazkal
Copy link
Collaborator

yaazkal commented Dec 12, 2024

I wonder if the exec command will do that since it libertares the process, but have to check it. Anyway will not be exactly a parallel process.

@yaazkal
Copy link
Collaborator

yaazkal commented Dec 12, 2024

Also don't forge &, like command1 & command2. That said, @yancyb-ehit have you tried something like bastille command target & bastille other-command target ?

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

No branches or pull requests

3 participants