-
Notifications
You must be signed in to change notification settings - Fork 61
Installation_Guide_Standalone
Contents | Preface | Introduction | Architecture | Environment | Standalone | Deployment | Configuration
For standalone deployments, you will need to install the controller, database, and as many agent machines as needed. These steps assume that you have java installed on all machines needed.
On the machine that will serve as the controller.
-
Download and Install Tomcat 6x from apache
http://tomcat.apache.org/download-60.cgi
-
Download mysql connector and install in TOMCAT_HOME/lib
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.30.tar.gz
-
Uncompress and move the jar file mysql-connector-java-nnnn.jar to TOMCAT_HOME/lib
-
Download Weld support jar and install in TOMCAT_HOME/lib
wget -O TOMCAT_HOME/lib http://central.maven.org/maven2/org/jboss/weld/servlet/weld-tomcat-support/1.0.1-Final/weld-tomcat-support-1.0.1-Final.jar
-
Build the project
mvn clean install -P release
-
Move the war to the tomcat webapp directory as tank.war or ROOT.war For context /tank
mv PROJECT_ROOT/web/web_ui/target/tank.war /opt/tomcat/webapps/tank.war
For context /
mv PROJECT_ROOT/web/web_ui/target/tank.war /opt/tomcat/webapps/ROOT.war
-
Install Mysql server
-
Change the root password
mysqladmin -u root password 'NEW_PASSWORD'
-
Start mysql client
mysql –u root –p
-
Create tank schema
CREATE SCHEMA wats DEFAULT CHARACTER SET utf8;
-
Create the tank directories.
mkdir [TS_HOME]; mkdir [TS_HOME]/conf; mkdir [TS_HOME]/jars
-
Add variable declarations to /etc/profile and add the following
export WATS_PROPERTIES=[TS_HOME]/conf
-
Start and stop tomcat to initialize the system. Ensure that the settings file is created in $WATS_PROPERTIES and that the database tables are created.
-
Edit the settings.xml file Change the standalone entry to true and change any other settings.
-
Add Datasource definition to server.xml edit the file [TOMCAT_HOME]/conf/server.xml. Inside the <GlobalNamingResources> tag add the following replacing values appropriately:
<Resource name="jdbc/watsDS" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="admin" password="replace_password_here" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://replace_host_name_here:3306/replace_db_name_here?autoReconnect=true" />
-
Add Datasource definition to context.xml edit the file [TOMCAT_HOME]/conf/context.xml. Inside the <Context> tag add the following:
<ResourceLink global='jdbc/watsDS' name='jdbc/watsDS' type="javax.sql.Datasource" />
Agents will typically run on separate machines. The default is 4000 users per agent but that number can be adjusted by editing the run.sh script.
-
Upload the agent standalone zip file
PROJECT_ROOT/agent/agent_standalone_pkg/target/agent-standalone-pkg.zip
-
unzip the file
unzip agent-standalone-pkg.zip
-
Read the README.txt for further instructions
Contents | Preface | Introduction | Architecture | Environment | Standalone | Deployment | Configuration