Distributed Environment Setup - acmeair/acmeair GitHub Wiki

These instructions build upon the WebSphere Liberty To WebSphere eXtreme Scale Setup Guide from running all of the components on a single system to running on multiple tiers. This is an example to show how each of the components of the sample application can be separated to multiple systems for performance analysis and scaling.

The following is a system configuration diagram showing the new topology.

![Acme Air distributed diagram](https://raw.github.com/acmeair/acmeair-webcontent/master/images/AcmeAir-distributed_config.png)

Configure application war

There are two files that need to be modified to route traffic to a catalog service on a remote system. Both of these files are located in the acmeair-services-wxs project under the src/main/resources/ directory.

acmeair-services-wxs/src/main/resources/spring-config-acmeair-data-wxs-direct.xml
acmeair-services-wxs/src/main/resources/spring-config-acmeair-data-wxs-direct-notx.xml

The gridConnectString property needs to be modified from 127.0.0.1 to the name or IP address of the catalog service.

	<bean id="sessionManager" class="com.acmeair.wxs.utils.WXSSessionManager">
		<property name="gridName" value="AcmeGrid" />
		<property name="gridConnectString" value="127.0.0.1:2809" />
		<!--property name = "integrateWithWASTransactions" value= "true" / -->
		<property name="disableNearCacheNameString"	value="Flight,FlightSegment,AirportCodeMapping,CustomerSession,Booking,Customer" />
		<property name="partitionFieldNameString" value="Flight:pk.flightSegmentId,FlightSegment:originPort,Booking:pk.customerId" />
		<property name="txManager" ref="transactionManager" />
	</bean>

After modifying these two files, rebuild the application war file and deploy the war file to the application server system.

cd %ACMEAIR_SRCDIR%
mvn package

Configure eXtreme Scale Container Servers

The container Servers need to be configured to connect to a catalog service if they are running on different servers.

On the container server system. edit the env.bat (or env.sh for Linux systems) located in the %WXS_SERVERDIR%\acmeair directory, from step "Create a WebSphere eXtreme Scale configuration" of the WebSphere Liberty To WebSphere eXtreme Scale Setup Guide.
Modify the CATALOGSERVER_HOST property from localhost to the name or IP address of the catalog service.

# The location of the catalog server host in which the client will connect.
CATALOGSERVER_HOST="localhost"

For more information on starting eXtreme Scale, see [Starting and stopping stand-alone servers] (http://pic.dhe.ibm.com/infocenter/wxsinfo/v8r6/index.jsp?topic=%2Fcom.ibm.websphere.extremescale.doc%2Ftxssastartstop.html) InfoCenter topic.

Configure JMeter

JMeter scripts for Acme Air need to be updated to use the appropriate name or address for the application server by editing the host.csv file.

cd %ACMEAIR_SRCDIR%/acmeair-driver/src/main/scripts
⚠️ **GitHub.com Fallback** ⚠️