Running multiple orchestrations in parallel using salt orchestration runner?

379 views
Skip to first unread message

Goran Stankovski

unread,
Jun 5, 2016, 7:56:57 AM6/5/16
to Salt-users
Hi,

I'm a noob to salt and looking to see how I can run multiple orchestrations in parallel.

Do I run multiple salt-run sessions in parallel from the command line?

e.g.  On the salt master:

salt-run state.orchestrate orchestration.foo &
salt-run state.orchestrate orchestration.bah &
 
Or can this be done some other way using an orchestration itself??

Steve Hajducko

unread,
Jun 5, 2016, 11:11:02 AM6/5/16
to Salt-users
Use the --async option to the salt-run command.  It'll return the job id instead of the output, which you can lookup later via salt-run jobs.lookup_jid.

There are other ways to do it though - you could also setup a reactor that listens for an event and then fires off the orchestrate.  Then you could use salt-call and send an event up to the master to fire off the orchestrate.

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Colton Myers

unread,
Jun 22, 2016, 1:21:45 PM6/22/16
to salt-...@googlegroups.com, Steve Hajducko
One thing to keep in mind here is that if you're using state runs inside of those orchestrations on the same minions, you could run into errors because of the state lock.

--  
Colton Myers
@basepi
Reply all
Reply to author
Forward
0 new messages