Configuring the tutorial system
Configure the resources to define the blue and green systems.
Before you begin
About this task
Procedure
-
The tutorial references the application created in the
JPetStore tutorial.
If you did not complete that tutorial, you can use any multi-component HCL Launch application that you have sufficient permissions to modify.
- While the examples in the tutorial show information for a Linux™ operating system, you can use any operating system.
-
Ensure that you have an agent installed in your environment.
The way these logical environments are implemented relies on the way that HCL Launch represents target environments as resources. In the tutorial, you create a single production environment consisting of several nodes, and then duplicate the resources to represent the second system. These resources behave like separate systems, even though the resources point to the same physical system. For simplicity, you can use a single agent for the logical environments that you create in the tutorial.
-
Add component tags to the JPetStore components.
You can tag components while you work on the Components tab, or you can tag components while you work in the Resources tab. Make sure that you use the Components tab because the tags that you associate with components in these two contexts behave differently.
To add tags to components, complete the following steps:
By using component tags, your resources and application can access all the components in an application with a single tag reference.
Creating the load balancer component
Create a component to abstractly represent the load balancer.
About this task
The tutorial load balancer component has an operational process called
Change node port
that abstractly changes the active port on a node. You pass the
port name that should be active during processing. You use the environment property
environment.LBPort
to define the logical environment's port.
Procedure
- Create a component and name it Load balancer or something similar.
-
Create an Operational (No Version Needed) process for the
Load balancer component and name it
Change node port
, or something similar.You do not need versioning for the simple process that you create for the component. - Add the Load balancer component to the JPetSore application.