Configuring Administration and Invalidation-Only Clusters

Configuring High Availability Solutions 3-19

12. By default, the Oracle Home field contains the file specification for the Oracle

home in which Oracle Web Cache is installed. Usually, you do not have to modify this field. Note that the combination of Host Name and Oracle Home must be unique in a cache cluster.

13. In the Capacity field, enter the number of concurrent incoming connections from

other cache cluster members that Oracle Web Cache can sustain. See Section 3.6.2 for further information about this field.

14. Click Submit.

You now have one cache, the current cache, in the cluster. However, the cluster information is ignored until you have multiple Oracle Web Cache system components in the cluster.

3.7.2 Task 2: Add Caches to the Cluster

Before you add a cache to the cluster, ensure the conditions described in Section 3.6.1 are met. To add another cache to the cluster with Oracle Web Cache Manager:

1. In the navigator frame, select Properties Clustering.

The Clustering page appears.

2. In the Cluster Members section of the Clustering page, click Add.

The Add Cache to Cluster dialog box appears.

3. In the Host Name field, enter the host name of the cache to be added to the cluster.

4. In the Admin Port field, enter the administration port for the cache to be added to

the cluster. The administration port is the listening port for administrative requests.

5. In the Protocol for Admin Port field, select either HTTP or HTTPS to accept

HTTP or HTTPS client requests.

6. In the Cache Name field, enter a name for the cache. The name must be unique

from the names of other caches in the cache cluster.

7. In the Capacity field, enter the number of concurrent incoming connections from

other cache cluster members that Oracle Web Cache can sustain. See Section 3.6.2 for further information about this field.

8. Click Submit.

The cache is now part of the cluster and is listed in the Cluster Member table. 9. To add more Oracle Web Cache instances to the cache cluster, repeat Steps 2 through 8.

10. When you have completed adding members to the cache cluster, click Apply

Changes . Oracle Web Cache adds the cache-specific information from the new cache cluster members to the cluster configuration. You can add more Oracle Web Cache instances to the cluster at any time by choosing Add . You can modify the settings for a cache cluster member by choosing Edit Selected . You can delete a cache cluster member, other than the current cache, by choosing Delete Selected. 3-20 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache

3.7.3 Task 3: Enable Tracking of Session Binding

In a cache cluster, all cache cluster members must be able to determine which origin server established the session, although the request was routed originally through only one cache cluster member. To configure session binding in a cache cluster, you select a session binding mechanism of Cookie-based. Setting this mechanism adds a cookie that tracks session information so that it can be read by all cluster members. Oracle Web Cache includes a Set-Cookie response-header in the response so that subsequent requests from the client include the cookie. The cookie provides information so that any of the cluster members can resolve the binding regardless of which cache handled the initial request. To configure session binding with the Cookie-based mechanism, see Section 3.5 .

3.7.4 Task 4: Synchronize the Configuration to Cluster Members

When you modify the cluster and apply changes, Oracle Web Cache adds the cache-specific information from the new cache cluster members to the configuration. For those changes to take affect in all cluster members, you must synchronize the configuration and restart the cache server process of the cluster members. To synchronize the configuration to new cluster members with Oracle Web Cache Manager:

1. In the navigator frame, select Operations Cache Operations.

The Cache Operations page appears. The Operation Needed column indicates the caches to which the configuration should be synchronized. 2. Synchronize the configuration to all cache cluster members:

a. Select All caches in the Operate On field.

b. Select an Interval of Immediate. No other interval is allowed for

synchronization.

c. Click Propagate.

Alternatively, you can synchronize the configuration to one cluster member at a time. Click Selected cache in the Operate On field, and then click Propagate. When the operation completes, the Operation Needed column in the Cache Operations page indicates the cluster members that must be restarted. 3. Stop and restart all cluster members:

a. Select All caches in the Operate On field.

b. Select an Interval to stagger the time that operation begins on the caches, and

then click Restart. Alternatively, you can restart one cluster member at a time. Choose Selected cache in the Operate On field and then click Restart. When the operation completes, the Operation Needed column in the Cache Operations page indicates that no operations are needed. The cache cluster is ready to use.

3.7.5 Removing Caches from a Cluster

To remove a cache from a cluster, you must not only ensure that remaining cluster members no longer include that cache in cluster, but that the removed cache no longer considers itself to be part of the cluster.