![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |
Figure Overview of Runtime components For High Availability shows a high level overview of a deployment model of runtime components in a cluster for high availability setup.All the instances of the Core Engine automatically behave in a fault tolerant manner. The load balancer distributes the load of requests within all active agents in the same group as per the configuration setup described in Configuring Load Balancer section. If any Core Engine instance fail, the load balancer distributes the load between the remaining active Core Engine instances in the group.
• You must configure health monitor of the load balancer to call the gateway ping operation so that the load balancer can determine which instances of the Core Engines are up and running. See Configuring Load Balancer for configuration details. If any of the Apache server or the Core Engine instance goes down, the load balancer considers it as a failure to forward the request and routes the request to the second active instance of Apache server as configured in the load balancer group.
Figure Deployment of Runtime Components In a Cluster illustrates the deployment of runtime components on the machines in a cluster environment for high availability.The figure Deployment of Runtime Components In a Cluster illustrates an example deployment model in which the components are deployed as follows:
• All the run time components communicate using the Rendezvous channel. In the example deployment model as shown in Deployment of Runtime Components In a Cluster, its assumed that all the machines running various instances of runtime components are in the same subnet.The high availability configuration of run time components of the gateway can be setup in the asg_core.cdd and asg_cl.cdd files respectively. An agent class is an agent type, defined in the CDD file that deploys as an agent instance.asg_core.cdd file defines the configuration for the following processing units:
• default, asg-core, asg-caching-core - These processing units refers to the Core Engine. The configuration settings of core-class (Inference) agent class defines the runtime behaviour of default, asg-core, asg-caching-core agent processing units.
• asg-cache - This processing unit refers to the Cache Agent. The configuration settings of cache-class (Cache) agent defines the runtime behaviour of asg-cache processing unit.
• asg-cache-cleanup - This processing unit refers to the Cache Cleanup Agent. The configuration settings of cache-cleanup-esp (Query) and cache-cleanup-scheduler (Inference) agent classes define the runtime behaviour of asg-cache-cleanup processing unit.
• asg-gtm - This processing unit refers to the Global Throttle Manager. The configuration settings of gtm-class (Inference) agent class defines the runtime behaviour of asg-gtm processing unit.asg_cl.cdd file defines the configuration for the following processing unit:
• asg_cl- This processing unit refers to the Central Logger. The configuration settings of BusinessEvents_Archive (Inference) agent class define the runtime behaviour of asg_cl processing unit.
•
4. Go to the Health Monitor tab of the navigation pane.
5.
7. For General Properties section, input the values for the following fields:
b. Type: Select the type as HTTP from drop-down list
8.
9. Input the values for the following fields under Configuration section as follows:
c.
d.
10. Click the Finished button.
2. On the left, under Local Traffic > Virtual Servers, select Pools node. Click the "+" to create a new pool.
4. In the upper-right corner of the screen, click Create. Verify that New Pool screen opens.
If the Create button is not available, make sure that you have permission to create a pool. Ask your administrator to grant Create Pool permissions to your user role.
5.
6.
7.
− Select an existing health monitor from the Available field. For example, select asgping health monitor as created in Create A Health Monitor For Core Engines section.
b. Click the Move button (<<) to move the monitor from the Available field to the Active field. For example move the asgping health monitor from the Available box to the Active box.
c.
8. Under Resources setting, select an appropriate algorithm from the drop-down list for Load Balancing Method field. For example, you can select Round Robin.
a. Select the New Address option.
c. In the Service Port field, enter the service port of HTTP module on that machine. (for example, type 80, or select HTTP).
d. Click Add.
10. Click Finished button.
2.
If the Create button is not available, make sure that you have permission to create a virtual server. Ask your administrator to grant permissions to create virtual server for your role.
5.
6.
7. In the Address box, type an IP address for the virtual server.
8.
9. In the Configuration area of the screen, locate the HTTP Profile setting and select HTTP. This assigns the default HTTP profile to the virtual server.
10. In the Resources section of the screen, locate the Default Pool setting and select the name of the HTTP pool created in the Create A Load Balancing Pool section.
11.
12.
1. Browse to ASG_HOME/modules/http_server/apache directory.
2. Edit the mod_ASG.conf file.
3. Set the AsgSubject parameter, which must be defined unique for each machine. For example, this can be set be follows:AsgSubject ASG_CoreEngine1_Subject1
4. You must set the Rendezvous connection parameters as described in the table Rendezvous Session Connection Parameters For Apache Module, if the Rendezvous daemon is running with non-default session parameters.
1. Navigate to the ASG_CONFIG_HOME directory.
2. Edit asg.properties file.
3. Set the tibco.clientVar.ASG/modRV/north_request property, which must be defined unique for each machine. For example, this can be set as follows:tibco.clientVar.ASG/modRV/north_request=ASG_CoreEngine1_Subject1
The value of tibco.clientVar.ASG/modRV/north_request property must match the AsgSubject defined in the mod_ASG.conf file for that machine.
4. You must set the Rendezvous connection parameters as described in the table Rendezvous Session Connection Parameters for Core Engine, if the Rendezvous daemon is running with non-default session parameters.The cluster properties are defined in the asg_core.cdd and asg_cl.cdd files.
The discover URL for a cluster is defined in the Properties section of the Cluster tab in the ASG_HOME/bin/asg_core.cdd and ASG_HOME/bin/asg_cl.cdd files. The discover URL is defined on each machine where the runtime component runs.
•
• To set the discover URL for a cluster containing the machines where Central Logger instances are running, you must edit the asg_cl.cdd file on each machine in the cluster. See Edit asg_cl.cdd File To Set Discover URL (using text editor).
1.
2. Edit the following properties and set the value to the actual IP addresses of the machines in a cluster, and an unused port.
3. Save the changes to asg_core.cdd file.To set the discover URL for a cluster containing the machines where the Central Logger instances are running, you must edit the ASG_HOME/bin/asg_cl.cdd file on each machine as follows:
1.
2. Edit the following properties and set the value to the actual IP addresses of the machines in a cluster, and an unused port.
3. Save the changes to the asg_cl.cdd file.
To edit the asg_core.cdd and asg_cl.cdd files using the Studio to set the discover URL, See Editing CDD File using Studio.For the Core Engines, you should run the multiple instances across the servers in a load balanced setup. The configuration for load balanced setup is defined in the asg_core.cdd file. See Configuring Core Engines.For the Cache Cleanup Agent, Global Throttle Manager and Central Logger components, the instances must be deployed as one active engine and one or more stand by agents that run on a separate server. See Configuring Cache Cleanup Agent, Configuring Global Throttle Manager and Configuring Central Logger.
Table 161 Fault Tolerant Configuration Parameters You must run the multiple Core Engine instances as Active to achieve load balancing. Out of the box, API Exchange Gateway provides the configuration parameters for load balancing, which are set in the ASG_HOME/bin/asg_core.cdd file. You can run multiple instances of the Core Engine using the configuration parameters set in the ASG_HOME/bin/asg_core.cdd file. By default, you can run unlimited number of instances.
Just as a reference, this section shows the sample settings for the Core Engines in the ASG_HOME/bin/asg_core.cdd (XML file). By default, no changes are required to run multiple instances of the Core Engine.
The Cache Agents behave according to the cache object management configuration set in the Cluster tab of the CDD file. Refer to CDD Cluster Tab Cache OM Settings table for the object management configuration parameters.Out of the box using the default configuration in the asg_core.cdd file, you can run more than one instance of Cache Agent.
Table 162 CDD Cluster Tab Cache OM Settings This section shows the sample settings for Cache Agents in the ASG_HOME/bin/asg_core.cdd (XML) file. You can use the sample settings as a reference by editing the ASG_HOME/bin/asg_core.cdd (XML) file in a text editor.
To run the Cache Cleanup Agent instances in a fault tolerant mode, you must set the Max Active property. Optionally, you can configure Agent Priority parameter. The Max Active and Priority parameters are defined in the asg_core.cdd file. See Fault Tolerant Configuration Parameters for description of parameters.
1. Navigate to the ASG_HOME/bin directory.
2. Edit the asg_core.cdd file. You can edit the file either using a text editor or using the Studio. See Editing Cluster Deployment Descriptor (CDD) File.
3. If you use the Studio, set Max Active property for cache cleanup agents as follows:
a. Select Agent Classes tab.
b. Select the cache-cleanup-scheduler (Inference) agent.
d. Select the cache-cleanup-esp (Query) agent.
5. Optionally, you can set the Priority for the processing units as follows using the Studio:
a. Select Processing Units tab.
b. Select the asg-cache-cleanup node.
c. On the right side, in the Agents section, set the priority for following agents:
d. Double click the Priority column to set a value, if required.This section shows the sample settings for cache cleanup agents in the ASG_HOME/bin/asg_core.cdd (XML) file.You can use the sample settings as a reference to set the values by editing the ASG_HOME/bin/asg_core.cdd (XML) file in a text editor:
To run the Global Throttle Manager instances in a fault tolerant mode, you must set the Max Active property. Optionally, you can configure Agent Priority parameter. The Max Active and Priority parameters are defined in the asg_core.cdd file. See Fault Tolerant Configuration Parameters for description of parameters.
1. Navigate to the ASG_HOME/bin directory.
2. Edit the asg_core.cdd file. You can edit the file either using a text editor or using the Studio. See Editing Cluster Deployment Descriptor (CDD) File.
3. Set the Max Active property as follows for the Agent Classes > gtm-class (Inference) agent. See Set Max Active using the Studio.
5. Optionally, you can set the priority for the asg-gtm processing unit using the Studio as follows. See Set Priority.
a. Go to Processing Units tab.
b. Select the asg-gtm node.
c.
d. This section lists the sample settings for the Global Throttle Manager instance in the ASG_HOME/bin/asg_core.cdd (XML) file.Use the sample settings as a reference to set the values by editing the ASG_HOME/bin/asg_core.cdd (XML) file in a text editor:
To run the Central Logger instances in a fault tolerant mode, you must set the Max Active property. Optionally, you can configure Agent Priority parameter. The Max Active and Priority parameters are defined in the ASG_HOME/bin/asg_cl.cdd file. See Fault Tolerant Configuration Parameters for description of parameters.
1. Navigate to the ASG_HOME/bin directory.
2. Edit the asg_cl.cdd file. You can edit the file either using a text editor or using the Studio. See Editing Cluster Deployment Descriptor (CDD) File. If you use the Studio, follow these steps:
a.
b. Select Agent Classes tab.
c. Select the BusinessEvents_Archive (Inference) node.
3. Optionally, you can set the priority for the asg-cl processing unit using the Studio as follows. See Set Priority.
a. Go to Processing Units tab.
b. Select the asg_cl node.
c.
d. This section lists the sample settings for the Central Logger instance in the ASG_HOME/bin/asg_cl.cdd (XML) file.You can use these sample settings as a reference to set the values for max-active and priority by editing the ASG_HOME/bin/asg_cl.cdd (XML) file in a text editor:
The parameters are defined in the ASG_CONFIG_HOME/asg.properties file and ASG_CONFIG_HOME/asg_cl.properties file. See following sections for the list of connection parameters:
• The instances of the runtime components illustrated in the deployment Deployment of Runtime Components In a Cluster assumes the following points:
![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |