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

CDS-40448-run-stages-in-parallel #802

Merged
merged 6 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CDS-40448-run-parallel-stages
Added a new topic to explain how to run parallel stages
  • Loading branch information
roshnisarangadharan committed Feb 23, 2023
commit 9dc5cd060103df6d7ea7187ef8fd782b9c4d73f3
5 changes: 0 additions & 5 deletions docs/platform/8_Pipelines/add-a-stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ In **Advanced**, you can use the following options:
* [Stage Conditional Execution Settings](w_pipeline-steps-reference/step-skip-condition-settings.md)
* [Step Failure Strategy Settings](w_pipeline-steps-reference/step-failure-strategy-settings.md)

### Option: Running Stages in Parallel

You can drag stages on top of each other to run them in parallel:

![](./static/add-a-stage-57.png)
### See also

* [Create Organizations and Projects](../organizations-and-projects/create-an-organization.md)
Expand Down
37 changes: 37 additions & 0 deletions docs/platform/8_Pipelines/run-stages-in-parallel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Run Stages in Parallel
description: Run stages in parallel if you want to deploy multiple, independent services to the same environment.
sidebar_position: 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this setting determines where the topic sits in the left navigation. Be sure to pick a spot that matches the importance of the topic.

---

Run stages in parallel when you want to deploy multiple, independent services to the same environment.

### Before you begin

* [Learn Harness' Key Concepts](../../getting-started/learn-harness-key-concepts.md)
* [Add a Stage](add-a-stage.md)

### Running stages in parallel

Run stages in parallel by dragging them together or by clicking the `+` button under a stage in the UI.

![](./static/add-a-stage-57.png)

The only change in the stage YAML is an additional `parallel`.

```
stages:
- parallel:
- stage:
```



Navigate between the stages by hovering over them and selecting the stage.

![](./static/run-stages-in-parallel.png)

A [Resource Constraint](../..continuous-delivery/cd-deployments-category/deployment-resource-constraints/) step is added to every stage automatically to make sure that two infrastructures are not being deployed concurrently. Hence, one of the two parallel stages will deploy first. Once the deployment of the winning stage finishes, the other stages will start.

You can deploy multiple services and multiple environments in a single stage. However, using multi-service will deploy each selected services to selected environments. We recommend that you use multiple stages for such use cases.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.