12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IIS <strong>web</strong> <strong>server</strong> to <strong>Borland</strong> <strong>web</strong> container connectivity<br />

Adding new clusters<br />

The WebClusters.properties file tells the IIOP redirector:<br />

■<br />

■<br />

the name of each available cluster: (ClusterList).<br />

the <strong>web</strong> container identification.<br />

■<br />

whether to provide automatic load balancing (enable_loadbalancing) for a particular<br />

cluster.<br />

To add a new cluster, in the WebClusters.properties file:<br />

1 add the name of the configured cluster to the ClusterList. For example:<br />

ClusterList=cluster1,cluster2,cluster3<br />

2 define each cluster by adding a line in the following format specifying the cluster<br />

name, the required <strong>web</strong>container_id attribute, and any additional attributes. For<br />

example:<br />

.<strong>web</strong>container_id = <br />

Note Failover and smart session are always enabled, for more information go to Chapter 7,<br />

“Clustering <strong>web</strong> components.”<br />

Table 5.7<br />

For example:<br />

Cluster definition attributes<br />

Attribute Required Definition<br />

<strong>web</strong>container_id yes the object “bind” name or corbaloc string identifying<br />

the <strong>web</strong> container(s) implementing the cluster.<br />

enable_loadbalancing =<br />

true|false<br />

no<br />

ClusterList=cluster1,cluster2,cluster3<br />

cluster1.<strong>web</strong>container_id = tc_inst1<br />

To enable load balancing, do not include this<br />

attribute or include and set to true; load balancing is<br />

enabled by default. To disable load balancing, set to<br />

false indicating that this cluster instance should not<br />

employ load-balancing techniques. Warning:<br />

Ensure that when entering the enable_loadbalancing<br />

attribute you give it a legal value (true or false).<br />

cluster2.<strong>web</strong>container_id = corbaloc::127.20.20.2:20202,:127.20.20.3:20202/<br />

tc_inst2<br />

cluster2.enable_loadbalancing = true<br />

Note<br />

Note<br />

cluster3.<strong>web</strong>container_id = tc_inst3<br />

cluster3.enable_loadbalancing = false<br />

In the above example, the following three clusters are defined:<br />

1 The first, uses the osagent naming scheme and is enabled for load balancing.<br />

2 The second cluster employs the corbaloc naming scheme, and is also enabled for<br />

load balancing.<br />

3 The third uses the osagent naming scheme, but has the load balancing features<br />

disabled.<br />

To disable use of a particular cluster, simply remove the cluster name from the<br />

ClusterList list. However, we recommend you do not remove clusters with active http<br />

sessions attached to the <strong>web</strong> <strong>server</strong> (attached users), because requests to these “live”<br />

sessions will fail.<br />

Modifications you make to the WebClusters.properties file automatically take effect on<br />

the next request. You do not need to restart your <strong>server</strong>(s).<br />

Chapter 5: Web <strong>server</strong> to <strong>web</strong> container connectivity 55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!