General Settings → Component Servers → Clustering Server Components
If you plan to create a cluster, read this section in its entirety, and then create a schematic to help you organize and plan your system layout and configuration.
Establishing one or more SBM clusters provides several benefits to your SBM installation.
For example, you can use SBM Configurator to create an Application Repository cluster, where each Application Repository server is an individual node in the cluster that is connected to the same Application Repository database. Multiple users can access the Application Repository cluster, with each request routed to one given Application Repository instance using either a software or hardware load balancer.
The load balancer has knowledge about the health of the configured servers in the cluster. If one of the servers goes down, the load balancer sends requests to the other servers in the cluster.
Load Balancer Requirements in a Tomcat Cluster
You can use either a software or hardware load balancer, though using a hardware load balancer is recommended due to better support, statistics, and overall performance. For uninterrupted service, the load balancer should be configured to ensure that sessions are "sticky" or persistent. This ensures that the same HTTP session is always delegated to the same machine, as state information resides on only one Application Repository server. The load balancer can then delegate different sessions to different servers so that multiple sessions can run on different servers.
For more details on configuring your load balancer with a Tomcat cluster, refer to solution S140260.
Load Balancer Requirements in a Application Engine Cluster
In an Application Engine cluster, the load balancer requires session persistence via the "Node Lock" option (also called "Server Affinity" and "Persistence" depending on the load balancer). This option ensures that once a user is directed to a server, they are continuously directed to that server unless there is a long period of inactivity or the server goes down. Data loss can occur if the Node Lock option is not used, in addition to an over consumption of licenses (1 per server that is connected to).
You also need to ensure that the load balancer is configured to properly identify the client. When SBM receives a network packet, it initially scans for X-FORWARDED-FOR: client1, proxy1, proxy2 in the header. If SBM cannot find this header, it uses the source IP address from the packet header instead. A packet that is sent from a load balancer or proxy will contain the load balancer or proxy server's address and not the client address; therefore, you must configure the load balancer header settings to include X-FORWARDED-FOR as SBM expects.
For more details on configuring your load balancer with an Application Engine cluster, refer to solution S138266.
Review the following important considerations before you configure a cluster.
The EHCache is responsible for synchronizing the nodes in the cluster and uses UDP broadcasting to accomplish this. The multi-cast group address that is used is a logical IP address that does not represent a real server. Instead, it represents the group of nodes and identifies which nodes should receive broadcast messages. It must be identical on each node in the cluster and unique within the network in which UDP broadcasting is allowed. The logical IP address and ports that are specified must be unique in the event that you configure multiple Tomcat clusters.
For example, depending on your network hardware and configuration, UDP broadcast messages can still be received by servers with different logical IP addresses if they share common port values. This can create a situation in which a process app deployment is not processed on the correct nodes in one of the clusters. Therefore, either ensure that your network supports multiple logical IP addresses for UDP broadcasting or ensure that a specific set of unique port values are assigned to each cluster.
To create one or more clusters, perform the following steps on each server that will join the cluster as a node :
Field Name | Description |
---|---|
Cluster name | Enter a unique name for the cluster
that distinguishes it from other clusters you might create in your development
and staging environments.
Note: If you configure each server manually (instead of
updating from the database or importing a snapshot file), you must enter the
same
Cluster name on each server that
you add to the cluster. This means that each server in the cluster will have
the same value in the
Cluster name field.
|
Use HTTP on port | Select this check box to configure all
SBM URLs to
use HTTP.
Important: If you select this option, all
SBM components
on this server are only accessible using HTTP. Select only the HTTP check box
to force all traffic to use HTTP.
|
Use HTTPS on port | Select this check box to configure all
SBM URLs to
use HTTPS.
Important: If you select this option, all
SBM components
on this server are only accessible using HTTPS. Select only the HTTPS check box
to force all traffic to use HTTPS.
|
Used by nodes that are inside the firewall.
Field Name | Description |
---|---|
Protocol | Select HTTP or HTTPS, depending on which protocol your load balancer is configured to use. |
Host | Enter the host name for the internal load balancer. |
Port | Enter the port number that is used to access the nodes through the load balancer. |
Used for connections from outside the firewall.
Field Name | Description |
---|---|
Protocol | Select HTTP or HTTPS, depending on which protocol your load balancer is configured to use. |
Host | Enter the server host name that all incoming requests should use. |
Port | Enter the port number that is used to access the nodes through the load balancer. |
Field Name | Description |
---|---|
Node 1 Host | Enter the host name of the first node that you add to the cluster. Click Add Node to define additional nodes or Remove Node to delete this node from the cluster. |
Node 2 Host | Enter the host name of the second node that you add to the cluster. Click Add Node to define additional nodes or Remove Node to delete this node from the cluster. |
After you have added at least one other node, continue to add nodes for each server that will join the cluster as a new node. You must replicate the same node number and host name pairing on each server in the cluster. For example, if you create the following node number and host name pairing on Server A:
Node | Host Name |
---|---|
Node 1 host: | Server A |
Node 2 host: | Server B |
Node 3 host: | Server C |
You must enter the same pairing on the Nodes tab on Server B and Server C:
Node | Host Name |
---|---|
Node 1 host: | Server A |
Node 2 host: | Server B |
Node 3 host: | Server C |
If you remove a node, the following node becomes the node number that you just removed. For example, if you remove node 2 (Server B), then Server C becomes node 2. This means you must update each server again with the correct node number and host name pairing.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.