Octopus Deploy: Running deployment steps in parallel

When I first got started with Octopus Deploy I would setup projects to have one long deploy process that ran steps in serial. Each step would wait until finished before another one would start.  Deploy times got longer and longer, so I set out to find a way to cut down deploy times.

If there are 2 or more process steps, there is an option in subsequent steps to “Run in parallel with previous steps”, however this is still limiting. This means only 2 steps can be running in parallel at a time.

To take this a step further, I wanted to setup deploy groups that could all run in parallel. This way deploy steps that run on different machines can be running at the same time. To do this, simply add a child step to any existing step:

This will add a parent (Web Server, Database Server, etc). Create groups for each individual machine or role, then set the parent step’s start trigger to “Run in parallel with previous step”. The more groups you create, the more steps that will run in parallel.

If you’d like to run multiple steps per tentacle (be careful, things can get messy here), you can enable multiple processes to run on a tentacle simultaneously. Octopus Deploy has instructions here: https://octopus.com/docs/how-to/run-multiple-processes-on-a-tentacle-simultaneously


One thought on “Octopus Deploy: Running deployment steps in parallel

  1. Good useful post ..
    I added your site into my bookmarks.
    🙂 Looking forward for future updates!

    Best regards,

Leave a Reply

Your email address will not be published. Required fields are marked *