A SERVICE OF

logo

Load Balancing and Clustering (optional)
52 BEA AquaLogic Commerce Services Deployment Guide
Clustering Scripts Setup
In preparation for running the WLST scripts to create a cluster, you will need to download the
WLST Clustering Scripts package at
http://edocs.bea.com/alcs/docs51/pdf/wlstClusteringScripts.zip (ZIP, 7KB) and unzip it to a
directory. After that, configure the environment variables in all of the scripts to match your
environment. A description of the variables that will need to be set can be found in the section
Environment Variables to Configure in the WLST Scripts. After that, copy the files to the servers
that you will be using in the cluster. You will then need to navigate to this directory on a server to
execute any of the scripts on that server.
Steps to Create the WebLogic Domain and Setup the Cluster
On the Server hosting the AdminServer:
1 Create a domain with
AdminServer and a cluster
of two managed servers
WL_HOME/common/bin/wlst.sh createcluster.py DOMAIN_NAME
CLUSTER_NAME
2 Start the node manager
and AdminServer
WL_HOME/common/bin/wlst.sh startadminserver.py DOMAIN_NAME
3 Setup JDBC Data Source WL_HOME/common/bin/wlst.sh createjdbc.py
t3://AdminServerIP:AdminServerHttpPort CLUSTER_NAME
4 Pack the domain WL_HOME/common/bin/pack.sh -managed=true -
domain=DOMAIN_PATH -template=DOMAIN_TEMPLATE -
template_name=DOMAIN_TEMPLATE_NAME
On all servers not hosting the AdminServer:
5 Unpack the
domain
Copy DOMAIN_TEMPLATE from the server hosting the AdminServer to the
same directory on all other servers that are a part of the cluster and then
execute the following command on the servers to create the base domain:
WL_HOME/common/bin/unpack.sh -domain=DOMAIN_PATH -
template=DOMAIN_TEMPLATE
6 Enroll the node
manager with
AdminServer and
then start it
Execute the following command on the servers to setup the node managers
and start them: WL_HOME/common/bin/wlst.sh enrollnodemanager.py
t3://AdminServerIP:AdminServerHttpPort DOMAIN_NAME
On the Server hosting the AdminServer:
7 Deploy the AquaLogic
Commerce Services code
to the cluster
WL_HOME/common/bin/wlst.sh deploy.py
t3://AdminServerIP:AdminServerHttpPort DEPLOYMENT_NAME
APPLICATION_PATH CLUSTER_NAME