How to create scalability test cases under DB2 LUW with Benchmark Factory for Databases Benchmark Factory offers several possibilities to create scenarios for scalability testing. You can use: 1. Industry standard benchmarks 2. Test database scalability 3. Test SQL for scalability 4. Import from a delimited text file 5. Replay load from an ODBC trace file 6. Import from Quest/Dell tools export file 7. Create a customer load scenario I would like to show how to setup a load scenario using an industry standard benchmark and in a second scenario how to use your own SQL statements for load testing. Benchmarck Factory for Databases Side 1
So starting with the industry standard benchmark I use the Load Scenario Wizard from Benchmark Factory to guide me thru all the needed steps: I select the Industry standard benchmark and then my choice is the AS3AP benchmark: The AS3AP benchmark is a scalable, portable ANSI SQL relational database benchmark. This benchmark provides a comprehensive set of tests for database processing power; has a built-in scalability and portability that tests a broad range of systems; minimizes human effort in implementing and running benchmark tests; and provides a uniform metric straight-forward interpretation of benchmark results: Benchmarck Factory for Databases Side 2
Now I need to create a profile or select an existing profile. The profile includes the database name, user, password and schema name. The connection to DB2 LUW uses the Call Level Interface from IBM (CLI): Benchmarck Factory for Databases Side 3
Then several DB2 LUW objects will be created under the schema of the profile, here in this case under schema BMF: Here you can see all created objects from schema BMF easy with the help of the TOAD for IBM DB2 Database Explorer interface: Benchmarck Factory for Databases Side 4
The next step is to define the number of virtual users and here are different possibilities, which you can see here: At least I create and save the load scenario job or add it to an existing Benchmark Factory job: Benchmarck Factory for Databases Side 5
Now back in the Benchmark Factory job view I can see my new job: From here with right click I can run the load scenario: Benchmarck Factory for Databases Side 6
The job is now running during the different steps of the scenarios: I have also real time statistics during the run of the job: Benchmarck Factory for Databases Side 7
After the job has finished I will get a result report with a lot of detail information: Here an example of the output of one of the report graphs: Benchmarck Factory for Databases Side 8
I want to show also how this load scenario runs against my DB2 LUW database using the collection possibilities of Foglight Performance Analysis for DB2. Here you can see very clear your database performance during the load test with Benchmark Factory with the different aspects: Overall performance with the Foglight Performance Analysis History view: Benchmarck Factory for Databases Side 9
Now it is time to show how to use your own SQL statements for a load test scenario. You can use again the wizard in Benchmark Factory and let you guide thru the process: Another way is to get the SQL statement from Toad for IBM DB2 or Foglight Performance Analysis. There is a great integration, which makes it very quick and easy for you to bring these SQL into Benchmark Factory. Benchmarck Factory for Databases Side 10
I have loaded an SQL statement into the Editor of Toad for IBM DB2. There is an icon to transfer this SQL into Benchmark Factory: The wizard will help you to setup all the needed steps and at least you have this load scenario as a job in Benchmark Factory: Benchmarck Factory for Databases Side 11
In Foglight Performance Analysis I do a right click on a SQL statement and here with Scalability Test I transfer this statement into Benchmark Factory Now I hope you can see how strong and easy Benchmark Factory can support you to creating your scenarios for scalability testing. I would like also to introduce the Transaction Processing Performance Council. On their website you will find information about scalability testing and some industry standard benchmark scenarios. Here you can find their website: http://www.tpc.org/information/benchmarks.asp. About the Author Udo Brede is Senior Solutions Architect Databases at Dell Software. Before joining Quest/DELL in 2001, Udo worked as a presales consultant at Compuware, supporting the File-AID products. Currently, Udo works primarily with Dell tools for Oracle, DB2 z/os and DB2 LUW. He supports customers across Europe and speaks at IDUG Europe and regional DB2 user groups meetings. Benchmarck Factory for Databases Side 12