Run bash scripts in parallel across servers using bash background jobs.
- Servers must be one per line in
servers.txt
file and must be accessible without password using pubkey method.
- Edit
run.sh
and place your custom commands there. - Execute
parallel.sh
script
Note: Per server execution logs are stored in logs directory and is overwritten on every runs.
Tips: Edit MAX_NPROC
in paralle.sh
to adjust # of parallel processes
- Sometimes, bash script does the job done to keep things simple. For more complex command orchestration, those tools are preferred and does better job.
- Puru