Cloudsuite WebServing deployement

本文档提供了一份详细的CloudSuite Web Serving基准测试的部署教程,包括前置软件包、基准组件、客户端、后端及前端机器的设置,以及如何运行基准测试。文档中还介绍了遇到的问题和解决方案,例如使用Faban驱动器进行基准测试,安装MySQL、Nginx、PHP、APC等组件,以及配置Faban、Olio应用和数据库。此外,还涵盖了在不同机器上复制VM映像以简化设置的过程。
摘要由CSDN通过智能技术生成

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

  1. MySQL v5.5
  2. Nginx v1.0
  3. PHP v5.3
  4. APC v3.1
  5. Faban v1.0
  6. Olio v0.2
  7. Tomcat v6.0

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
  1. Use the Faban kit in our web benchmark package or download it from link.
  2. 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.
  3. 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.
  4. 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.
  5. Download MySQL Connector/J (JDBC Driver for MySQL) and unpack it (or use the one provi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值