In the topology, users can define how a SOURCE node connects to a TARGET node. For example, they may configure how a web application (i.e., a SOURCE node) connects to a database (i.e., a TARGET node).
Step 1. Drop
- Drop two Bash components on two compute nodes (e.g.,
Step 2. Connect
- Click on the connect_to_data_endpoint point of
Bash_1and connect to the data_endpoint of
In this example,
Bash_2 are the SOURCE node and the TARGET node of the relationship, respectively.
Step 3. Configure source node
- Click on
- Provide the artifact for the operation post_configure_source. This operation will be executed on
Compute_1after the operation configure has completed successfully.
You may use this operation to configure
Bash_1 to connect to
Bash_2. For example:
In this example, some environment variables from both the source and target nodes (e.g.,
TARGET_IP) are available in the script. For more environment variables, see this section.
Step 4. Add source node (optional)
- Click on
- Provide the artifact for the operation add_source. This operation will be executed on
Bash_1has completed successfully.
You may use
add_source to notify
Bash_1 has completedly successfully. For example:
During the deployment, the resulting workflow between
Bash_2 is as follows:
- The orchestrator setups the TARGET node first (i.e., it calls the operation
- Afterwards, it setups the SOURCE node to connect to the TARGET node (i.e., it calls the operation
- After the SOURCE node has started successfully, the orchestrator notifies the TARGET node (i.e., it calls the operation