The official guide of webserving doesn't indicate all the necessary configurations. I refined this guide based on my own experience. Hope you can enjoy this!
My experimental setup are three kvm VMs. The setup of backend and frontend machines could be eased by just copying the VM image.
My modifications are marked as red below:
Prerequisite Software Packages
Download the Web Serving Benchmark.
You need JDK, GCC, and Apache Ant installed on all machines. The JAVA_HOME enviroment variable must point to the JDK installation path. We use OpenJDK 1.6.
I just installed openjdk and build-essentials
Benchmark Components
The benchmark consists of three main components: A web server, a database backend and a client to emulate real world accesses to the web server, each running on a separate machine (Client and backend can run on the same machine). The following instructions provide the necessary details to install the benchmark. We provide the instructions to install the three main components and prepare the applications for benchmarking. Please note that CloudStone provides the option to add an additional layer of memcached machines. However, in CloudSuite, we focus on benchmarking the web server behavior using this benchmark and we do not setup a memcached server.
Setting up the Client Machine
The following instructions will help the user set up the Faban driver which is used to benchmark the Olio application. We start by the client machine because we will need Faban installation on the backend and frontend. Faban must be installed on all nodes on the same absolute path. It has a single master and several agents. The Faban master must run on the client machine. You just need to set up the Faban master and then copy it to the backend and frontend machines, where it will be used as an agent.
Setting up the Faban driver- Use the Faban kit in our web benchmark package or download it from link.
- Untar faban-kit-022311.tar.gz in a directory on the client node. A subdirectory named faban will be created which we will refer to it as $FABAN_HOME.
tar xzvf faban-kit-022311.tar.gz
export FABAN_HOME=/path/to/faban
Note: More details on Faban installation can be found at link. - Download a copy of Olio's PHP implementation from link by selecting apache-olio-php-src-0.2.tar.gz or use the copy included in our web benchmark package.
- Untar apache-olio-php-src-0.2.tar.gz in a directory. This creates an apache-olio-php-src-0.2 subdirectory, which we will refer to it as $OLIO_HOME.
tar xzvf apache-olio-php-src-0.2.tar.gz
export OLIO_HOME=/path/to/apache-olio-php-src-0.2
Note: Detailed installation and configuration instructions for Olio can be found at link. - Download MySQL Connector/J (JDBC Driver for MySQL) and unpack it (or use the one provi