A SERVICE OF

logo

Load Balancing and Clustering (optional)
58 BEA AquaLogic Commerce Services Deployment Guide
If your Commerce Manager and Storefront are located on the same server, you do not need to
setup an rsync server.
If they are located on different servers, however, then you will need to setup an rsync daemon on
the server hosting the Commerce Manager and rsync clients on all Storefront servers.
Download rsync
Download the rsync software from the rsync download page at
http://samba.anu.edu.au/rsync/download.html.
The rsync server and client are bundled together. If you downloaded the source code, you can
run the following commands to build it (a C compiler is required for this).
{RSYNC_SRC_DIR}/configure
{RSYNC_SRC_DIR}/make
{RSYNC_SRC_DIR}/make install
Set Up the rsync Server
1. Setup the rsync daemon on the Commerce Manager server (replacing SF1_SERVER_IP and
SF2_SERVER_IP with the IP addresses of the servers that you will be using as the nodes in
the cluster and <ALCS_APP_HOME> with the path to the root of the AquaLogic Commerce
Services code base).
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
hosts allow = SF1_SERVER_IP, SF2_SERVER_IP
exclude = .svn .svn/* *.bak
[assets]
path = <ALCS_APP_HOME>/ assets
comment = assets
[templates]
path = <ALCS_APP_HOME>/commerceServicesManager/WEB-
INF/templates
comment = view templates
2. Create the welcome message file /etc/rsyncd.motd.
Welcome to rsyncd server.
3. Start the rsync daemon.
rsync --verbose --progress --stats --compress --
rsh=/usr/local/bin/ssh \
--recursive --times --perms --links --delete \
-daemon