WARNING: This web is not used anymore. Please use PDBService.OracleRACLoadTestingInstall instead!
 

Installation

Requirements

The framework is coupled to several tools available at CERN. You will need to check if everything is set up correctly.

  • Every client machine should have an AFS access. It allows us to distribute the code to the clients and gather the results in a single folder. NFS can be used as a substitute but it will cause problems for the web based report.

  • One of the client machines should be able to access all the other nodes via ssh and without password. This one will be used to start the manager script.

Source code

You can get the source code from the CORAL CVS :

cd ~/
cvs -d :pserver:anonymous@coral.cvs.cern.ch:/cvs/coral co -d PerfTests -P coral/Tests/Performance_RelationalAccess/

Web site configuration

A web site should be configured in order to publish the web based report. An AFS based is easily created using this page : https://www.cern.ch/WebServices/Services/CreateNewSite/ . Choose AFS folder for the Site type and put the log folder path (ie: /afs/cern.ch/user/j/jsmith/PerfTests/logs/).

Install JPGraph

Get it from there : http://www.aditus.nu/jpgraph/jpdownload.php ( use "PHP4: JpGraph 1.x - series" ) and put it in the log directory (as jpgraph) :

cd ~/PerfTests/logs/
wget http://hem.bredband.net/jpgraph/jpgraph-1.22.tar.gz -O /tmp/jpgraph.tar.gz
tar zxf /tmp/jpgraph.tar.gz
mv jpgraph* jpgraph

Access rights

Change the access privileges to the log directory to enable access from web :

fs setacl -dir ~/PerfTests/logs/ ~/PerfTests/logs/jpgraph/src/ ~/PerfTests/logs/jpgraph/src/lang/ -acl system:anyuser rl

Monitoring schema on the target database

You should create a specific schema on the monitored batabase to use the monitoring feature. A script called install.sql is provided in order to do so. You should execute it with a DBA account. You will be asked for a username and a password which will be needed by the framework afterward (in authentication.xml).

Framework configuration

Modify testConf.xml to configure the test environment.

  • Indicate the client machine hostnames
        <testNodes>
                <client>node1</client>
                <client>node2</client>
                <client>node3</client>
        </testNodes>
  • and the RAC node hostnames
        <monitoring>
                <server>server1</server>
                <server>server2</server>
        </monitoring>
  • you can enable the different monitoring graphs
        <statistic
                cpu="1"   -- 0 to disable
                numRACNodes="2"
                waitEvents="1"/>   -- 0 to disable
  • you can tweak the ramping-up of the connections
        <execution
                numBoxes="1"   -- number of machines used for this test run
                numMaxClientsPerBox="2"   -- total number of client programs which will be started on each client machine
                numClientsPerBoxInit="1"   -- number of client programs which will be started on each client machine on the first step 
                numClientsPerStep="1"   -- number of client programs which will be started on each client machine on the following steps
                stepPeriod="20"   -- waiting time between each "ramping-up step"
                testMaxDuration="3600"/>   -- maximum duration of the test, after this period the clients are killed and the test is shut down
  • then you should indicate the folders used by the program
        <locations
                baseDir="/afs/cern.ch/user/j/jsmith/PerfTests/"   -- directory where you downloaded the framework
                clientLogDir="/afs/cern.ch/user/j/jsmith/PerfTests/logs/"/>   -- directory where you planned to store all the log folders 
                                (can be in another place than the base directory but should remain on a shared filesystem.
  • here you should indicate the information related to the client program
        <clientConf
                db_connection="/dbdev/OracleStress"   -- connection string used by the monitoring script (declared in dblookup.xml and authentication.xml)
                db_username="ST_CLIENT"   -- name of the Oracle user which will be used as client for the test
                testClientCmd="client.py"   -- command used to start the test program on the different client nodes
                testClientExe="python"   -- real name as seen by the operating system (eg: python for a python script)
                reportEveryXSecs="10"/>   -- time between each monitoring output (should also be used in the client program, eg: writes results on this same frequency)
  • you can save meaningful files in the log folder
        <fileToSave>
                <file name="Client execution script">client.py</file>   -- the client program should be saved in order to reproduce the test easily
                <file name="Configuration file">testConf.xml</file>   -- a saved version of the configuration file is also needed to generate the report
        </fileToSave>

Database access

You'll have to modify the configuration files authentication.xml and dblookup.xml. They are needed by the monitoring extension and perhaps for the test client.

First the account for the monitoring
<?xml version="1.0" ?>
<connectionslist>
  <connection name="oracle://oracle_service_name/oracle_monitoring_username">
    <parameter name="user" value="oracle_monitoring_username" />
    <parameter name="password" value="oracle_monitoring_password" />
  </connection>
Then the account for the test client for each node (if using COOL or CORAL)
  <connection name="oracle://oracle_service_name_node1/oracle_client_username">
    <parameter name="user" value="oracle_client_username" />
    <parameter name="password" value="oracle_client_password" />
  </connection>

  <connection name="oracle://oracle_service_name_node2/oracle_client_username">
    <parameter name="user" value="oracle_client_username" />
    <parameter name="password" value="oracle_client_password" />
  </connection>
</connectionslist>

CORAL uses also this file to declare the monitoring service name
<?xml version="1.0" ?>
<servicelist>
  <logicalservice name="/OracleStressReport">
     <service name="oracle://oracle_serice_name/oracle_monitoring_username" accessMode="readonly" authentication="password" />
  </logicalservice>
</servicelist>
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2007-12-06 - RomainBasset
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    PSSGroup All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback