After you federate your WebSphere Commerce environment,
you can configure horizontal clustering. Clustering provides failover
protection and provides workload balancing.Clustering
with horizontal cluster members refers to the traditional practice
of defining cluster members of an application server on multiple physical
machines. This process allows a single application to span several
machines while presenting a single system image. Clustering with horizontal
cluster members can provide increased throughput and high availability.
Procedure
To create a cluster with horizontal cluster members:
- Federate the WebSphere Commerce
node into a deployment manager cell.
- Prepare additional nodes
for each node that you want to add to the cluster.
- Define the JDBC provider
path for each node that contains a server that is or will be a member
of the WebSphere Commerce cluster.
- Create a WebSphere
Commerce Cluster.
- Adding additional cluster
members if required.
- Start the WebSphere
Application Server administration server.
- Launch the WebSphere
administrative console.
- Create an Internal
Replication Domain for your application:
Note: It is possible
to create this as part of the initial cluster setup. If you have already
created a Replication Domain for your application, you can use the
existing one.
- Click .
- Fill in the required fields. For Number
of replicas, select Entire Domain.
Save the changes.
- Enable cache replication in each cluster member.
- Click .
- To enable replication, select Enable Cache
Replication.
- Choose a replication domain.
- Choose a replication type. For WebSphere Commerce, the
recommendation is to use Not shared. For other
options, see Dynamic cache service settings.
Note: With the Not shared replication type, invalidations are sent without
replicating content.
- Repeat steps a-d for each cluster member.
- Save your changes.
- Ensure the replication domain and
replication type of all out of box DistributedMap object caches are
specified.
- Open the WebSphere Application Server Integrated Solutions
Console.
- From the left menu, click .
-
Ensure that the replication domain and a replication type of 1 (
not-shared
) is
specified for all of the object caches that are defined in the
Stores.war/classes/cacheinstances.properties file. The object cache with the
JNDI name services/cache/WCSessionDistributedMapCache must be defined. For more
information see Enabling WebSphere Commerce data cache.
- Instead of using a default setting,
always explicitly specify the replication mode for each entry in cachespec.xml.
For example:
- Add
<sharing-policy>shared-push</sharing-policy>
to
each cache-entry in cachespec.xml.Note: You can
choose not to replicate certain cache entries. To configure a cache
entry to not replicate, set
<sharing-policy>not-shared</sharing-policy>
.
See the
cachespec.xml.
For more
information, see Cache replication.
- Regenerate the Web server plug-in and copy the plug-in to the Web server.
Ensure
that the web server configuration file, httpd.conf,
points to right web server plug-in file.
- Start
your WebSphere Commerce cluster.