<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
-->

<olio>
    <jvmConfig xmlns="http://faban.sunsource.net/ns/fabanharness">
        <javaHome>/usr/java</javaHome>
        <jvmOptions>-Xmx3g -Xms256m -XX:+DisableExplicitGC</jvmOptions>
    </jvmConfig>
    
    <fa:runConfig definition="org.apache.olio.workload.driver.UIDriver" xmlns="http://faban.sunsource.net/ns/fabandriver" xmlns:fa="http://faban.sunsource.net/ns/faban" xmlns:fh="http://faban.sunsource.net/ns/fabanharness">
        <fh:description>Enter description for this run here</fh:description>
        
        <fa:hostConfig>
            <fa:host>driverHost</fa:host>
            <fh:enabled>true</fh:enabled>
            <fh:cpus>0</fh:cpus>
            <fh:tools>vmstat 10</fh:tools>
            <fh:userCommands/>
        </fa:hostConfig>
        
        <fa:scale>25</fa:scale>
        
        <fa:runControl>
            <fa:rampUp>30</fa:rampUp>
            <fa:steadyState>300</fa:steadyState>
            <fa:rampDown>10</fa:rampDown>
        </fa:runControl>

        <outputDir>/tmp</outputDir>
        
        <audit>false</audit>
        <threadStart>            
            <delay>100</delay>
            <simultaneous>false</simultaneous>            
            <parallel>false</parallel>
        </threadStart>
        
        <stats>
            <maxRunTime>6</maxRunTime>
            <interval>30</interval>
        </stats>
        
        <runtimeStats enabled="false">
            <interval>25</interval>
        </runtimeStats>
        
        <driverConfig name="UIDriver">            
            <agents>1</agents>
            <stats>
                <interval>30</interval>
            </stats>            
            <runtimeStats target="9988"/>
            <properties>
                <property name="serverType">php</property>
            </properties>
        </driverConfig>
    </fa:runConfig>
    
    <webServer>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness" xmlns:fa="http://faban.sunsource.net/ns/faban">
            <fa:hostPorts>webHost:8080</fa:hostPorts>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>vmstat 10; mpstat 10; nicstat 10</tools>
            <userCommands/>            
        </fa:hostConfig>
        <type>apache</type>
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness">
            <fh:name>ApacheHttpdService</fh:name>
            <fh:tools>NONE</fh:tools>
            <fh:restart>true</fh:restart>
            <fh:config>
                <cmdPath>/usr/apache2/2.2/bin/apachectl</cmdPath>
                <logsDir>/var/apache2/2.2/logs</logsDir>
                <sessionDir>/tmp/http_sessions</sessionDir>
                <confPath>/etc/apache2/2.2/httpd.conf</confPath>
                <phpIniPath>/etc/php/5.2/php.ini</phpIniPath>
             </fh:config>
        </fh:service>
    </webServer>
    <dbServer>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness" xmlns:fa="http://faban.sunsource.net/ns/faban">
            <fa:host>dbHost</fa:host>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools></tools>
            <userCommands/>
        </fa:hostConfig>
        <dbDriver>com.mysql.jdbc.Driver</dbDriver>        
        <connectURL>jdbc:mysql://dbHost/olio?user=olio&amp;password=olio&amp;relaxAutoCommit=true&amp;sessionVariables=FOREIGN_KEY_CHECKS=0</connectURL>
        <autoCommit>true</autoCommit>
        <reloadDB>true</reloadDB>
        <scale>50</scale>        
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness">
            <fh:name>MySQLService</fh:name>
            <fh:tools>Mysqlstats</fh:tools>
            <fh:restart>false</fh:restart>
            <fh:config>
                <serverHome>/var/mysql</serverHome>
                <user>olio</user>
                <password>olio</password>
                <confPath>/etc/my.cnf</confPath>
             </fh:config>
        </fh:service>
    </dbServer>
    <dataStorage>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness" xmlns:fa="http://faban.sunsource.net/ns/faban">
            <fa:host>dataHost</fa:host>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>NONE</tools>
            <userCommands></userCommands>
        </fa:hostConfig>
        <reloadMedia>false</reloadMedia>
        <mediaDir>/export/home/filestore</mediaDir>
    </dataStorage>
    <cacheServers>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness" xmlns:fa="http://faban.sunsource.net/ns/faban">
            <fa:hostPorts>cacheHost</fa:hostPorts>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>NONE</tools>
            <userCommands/>
        </fa:hostConfig>
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness">
            <fh:name>MemcachedService</fh:name>
            <fh:tools>MemcacheStats -i 10</fh:tools>
            <fh:restart>true</fh:restart>
            <fh:config>
                <cmdPath>/usr/lib/memcached</cmdPath>
                <serverMemSize>256</serverMemSize>
             </fh:config>
        </fh:service>
    </cacheServers>
</olio>
