Solutions
DA: How to execute component process on a specific resource before executing on other resources in the environment
ID: | S143378 | |
Published: | 19 February 2021 |
Operating System(s)
- All Unix
- All Windows
Product(s)
- Release Automation
Description
While an environment may have several resources/agents that require the same component process, there are times when one such resource should be updated first. For example, if one of the resources acts as a primary or lead resource for this component.
Resolution
If an environment has several resources/agents all mapped to the same component, how to accomplish deploying to one specific resource before the others receive the deployment?
Roles may be used to control the sequence of deployment execution within an environment when there are multiple resources mapped to the component.
To configure this:
- Navigate to Management | Resources | choose the tab named ROLES | Click CREATE button
- Create one role named Leader and a second role named non-leader
NOTE: The role names can be anything you wish - in our case, we will deploy to resources with "Leader" role first and later we will deploy to resources with role named "non-leader". - At the page for Management | Resources, select each resource one at a time.
- the click on "roles" tab, click on "Add Resource Roles" button
- select the appropriate role for this resource - either Leader or non-leader
- Save and repeat for the next resource
- Create the Component; fill in the source type details, etc.
- Create a component process
- Create the Application
- Add Component(s) and Environment(s) to the application
- Perform Component mapping to add all needed resources to the component
- Create an Application Process
- Utilize the Process step "Install Component" to install the component to the Lead Resource
- Fill in the component name, the process name
- For the "limit to Resource Role" specify "Leader"
- Again, add the process step "Install Component" to install the component to the non-leader resource(s)
- Fill in the component name, the process name
- For the "Limit to Resource Role" specify "non-leader"
- Connect the process steps from Start to the first install component, then from the first install component to the second and finally to Finish.
- Save the application process
- Run the application process.
It will run on the resource with "Leader Role" first and when that is complete it will run on the resources with "non-leader" role.
Applies To
Release Automation
6.3.1