introduction to database benchmarking with benchmark factory

35
1 Global Marketing Bert Scalzo PhD, MBA & Oracle ACE Database Expert & Product Architect Avoiding the Risks of Database Change using Benchmark Factory

Upload: michael-micalizzi

Post on 27-Dec-2014

748 views

Category:

Technology


1 download

DESCRIPTION

When you are faced with making changes to your database environment such as upgrades, patches, hardware installation or virtual machine implementations, there are inherent risks that database performance or availability can suffer. Oracle ACE and author Bert Scalzo will show how to reduce these risks and demonstrate how Benchmark Factory can help you scale your database for best possible results.

TRANSCRIPT

Page 1: Introduction to Database Benchmarking with Benchmark Factory

1 Global Marketing

Bert Scalzo PhD, MBA & Oracle ACE Database Expert & Product Architect

Avoiding the Risks of Database Change using Benchmark Factory

Page 2: Introduction to Database Benchmarking with Benchmark Factory

2 Quest Software is now a part of Dell

Books by Bert Scalzo

Page 3: Introduction to Database Benchmarking with Benchmark Factory

3 Quest Software is now a part of Dell

• Database Benchmarking Basics

• Benchmark Factory Overview

• Benchmarking Options

• Customizing Benchmarking Projects

• Running a Benchmark

• Examining Runtime Reports

• Error Messages and Log Files

• Benchmark Factory Demonstration

• Questions & Answers

Purpose / Agenda

Page 4: Introduction to Database Benchmarking with Benchmark Factory

4 Quest Software is now a part of Dell

Database Benchmarking is complicated Even with a Benchmarking Tool

There is no substitute for

your knowledge and

expertise

Page 5: Introduction to Database Benchmarking with Benchmark Factory

5 Quest Software is now a part of Dell

Successful Database Benchmarking

Expert – must know database, O/S, hardware, software, tuning & have read the benchmark specs Stress test the database

?

Page 6: Introduction to Database Benchmarking with Benchmark Factory

6 Quest Software is now a part of Dell

Database Benchmarking Most Common Mistakes

Page 7: Introduction to Database Benchmarking with Benchmark Factory

7 Quest Software is now a part of Dell

Wrong Person Doing the Heavy Lifting

Page 8: Introduction to Database Benchmarking with Benchmark Factory

8 Quest Software is now a part of Dell

Trying to make do without the right tools

Page 9: Introduction to Database Benchmarking with Benchmark Factory

9 Quest Software is now a part of Dell

Wrong number of virtual users Don’t cut corners

Page 10: Introduction to Database Benchmarking with Benchmark Factory

10 Quest Software is now a part of Dell

Industry Standard Database Benchmarks

• Industry Standard Database Benchmarks have been around for over 20 years

• TPC.ORG – TPC-C: Older OLTP benchmark. Basic “order entry” type application.

– TPC-H: Data warehousing queries. 22 queries – not star schema design.

– TPC-E: Newer OLTP benchmark. Simulates workload of brokerage firms.

– TPC-DS: New, evolving complete DW. Spec still evolving – not yet in BMF.

– TPC-VMS: New, evolving virtual DB’s. Spec still evolving – not yet in BMF.

• Be Sure to Read the Specs – Understand basic database design

– Implementation options up to you

– Sizing options for data load and concurrency

– How to interpret results and/or gauge success

• Majority of failures due to insufficient preparation, unrealistic expectations, and uncertain metrics for success

Page 11: Introduction to Database Benchmarking with Benchmark Factory

11 Quest Software is now a part of Dell

Examples of Info in the Spec: TPC-C

BMF Prompts for DB size – you must know how to answer

100 concurrent users = scale factor of 10

Page 12: Introduction to Database Benchmarking with Benchmark Factory

12 Quest Software is now a part of Dell

Examples of Info in the Spec: TPC-H BMF does not know what Oracle options you are licensed for (partitioning), nor your hardware setup such as spindles per LUN, RAID level, CPU count, RAM size, and son on.

BMF creates basic & correct tables and indexes – you must manually optimize them within spec.

Page 13: Introduction to Database Benchmarking with Benchmark Factory

13 Quest Software is now a part of Dell

Database Design – Reference Full Disclosure Reports for Similar Setups

Page 14: Introduction to Database Benchmarking with Benchmark Factory

14 Quest Software is now a part of Dell

Database Design Reference Full Disclosure Reports for Similar Setups

Page 15: Introduction to Database Benchmarking with Benchmark Factory

15 Quest Software is now a part of Dell

Database Design – Appendix B Will Show DDL for Optimal Design

Very common technique to load very large data sets into ETL or staging tables, and then to do create table as select (CTAS) to populate the benchmark tables

Page 16: Introduction to Database Benchmarking with Benchmark Factory

16 Quest Software is now a part of Dell

Common Database Benchmark Metrics TPS and Avg. Response Time

• Transactions per Second

– Gets far too much attention

– Meaningless to most users

– Sort of like automobile RPM’s (how fast internal engine is working – not how fast car is moving or how soon we’ll arrive)

– Misconception that TPS equates to IOPS (IO Operations per Second) – ignores database memory caching and logging

– BMF does not report IOPS (on roadmap for possibly 7.0)

• Average Response Time

– Gets far too less attention

– Meaningful to most users

– Sort of like MPH (or KPH) (how fast car actually is moving – so infers how soon we’ll arrive or amount of fuel we’ll use)

– When examined in conjunction with TPS, then a generally observable and clear pattern often emerges (next slide) …

• Be sure to read my blog: The Myth of Transactions per Second (TPS)

Page 17: Introduction to Database Benchmarking with Benchmark Factory

17 Quest Software is now a part of Dell

Common Database Benchmark Pattern – True Point of Saturation

0

1000

2000

3000

4000

5000

6000

7000

100 200 300 400 500 600 700 800 900 1000

TPS Avg Resp Time

Looking for inflection point where TPS is still increasing or just decreasing and close to max where average response time is below customer defined SLA

Notice the line characteristics between roughly 750 and 850 concurrent users – for current configuration and optimization benchmark results interesting

Common mistake to simply attempt maximize TPS – remember TPS is not IOPS

Page 18: Introduction to Database Benchmarking with Benchmark Factory

18 Quest Software is now a part of Dell

Benchmark Factory Architecture – Console (Control Center) and Agents

You must manually install BMF agent software on servers – otherwise BMF will simply spawn agents on your console machine (major bottleneck)

Each 32-bit BMF agent can handle 500 concurrent user sessions

Each 64-bit BMF agent can handle 1,000 concurrent user sessions

Each server running one or more agents requires its own separate BMF license!

Agent servers can be virtual machines

Page 19: Introduction to Database Benchmarking with Benchmark Factory

19 Quest Software is now a part of Dell

Hardware Sizing is Very Difficult Requires Lots of Thought

Let’s assume doing TPC-C benchmark for sale factor 100, so 1,000 concurrent users, and roughly 8-10 BMF agents

Note we already have a huge built-in bottleneck – there’s only one NIC for 1,000 concurrent database sessions!

Let’s assume using virtual machines for entire BMF architecture on a seemingly large VMware ESX / vSphere server

Page 20: Introduction to Database Benchmarking with Benchmark Factory

20 Quest Software is now a part of Dell

Benchmark Factory Architecture BMF Offers Two Repository Options

DEFAULT

Page 21: Introduction to Database Benchmarking with Benchmark Factory

21 Quest Software is now a part of Dell

BMF Offers Many Types of Tests Industry Standard Benchmarks

Page 22: Introduction to Database Benchmarking with Benchmark Factory

22 Quest Software is now a part of Dell

BMF Offers Many Types of Tests Scalability & Workload Capture/Replay

Page 23: Introduction to Database Benchmarking with Benchmark Factory

23 Quest Software is now a part of Dell

BMF Offers Many Types of Tests Custom Load Scenario

Page 24: Introduction to Database Benchmarking with Benchmark Factory

24 Quest Software is now a part of Dell

BMF Offers Many Types of Tests Goal Testing to Meet Customer SLA

BMF will test from 100 to 1,000 concurrent users in increments of 100 additional users, and will stop when the average response time is more than 2 seconds (e.g. common customer defined SLA).

Page 25: Introduction to Database Benchmarking with Benchmark Factory

25 Quest Software is now a part of Dell

Example of Benchmark Factory Project – Default Creation

Page 26: Introduction to Database Benchmarking with Benchmark Factory

26 Quest Software is now a part of Dell

Example of Benchmark Factory Project Custom (Highly Recommended)

Page 27: Introduction to Database Benchmarking with Benchmark Factory

27 Quest Software is now a part of Dell

Example of Benchmark Factory Project Custom (Highly Recommended)

Page 28: Introduction to Database Benchmarking with Benchmark Factory

28 Quest Software is now a part of Dell

Example of Benchmark Factory Running

Page 29: Introduction to Database Benchmarking with Benchmark Factory

29 Quest Software is now a part of Dell

Benchmark Factory Runtime Reports – Results from Runs

Page 30: Introduction to Database Benchmarking with Benchmark Factory

30 Quest Software is now a part of Dell

Benchmark Factory Error Logging – Where to Look

Page 31: Introduction to Database Benchmarking with Benchmark Factory

31 Quest Software is now a part of Dell

Benchmark Factory Error Logging – Where to Look

Page 32: Introduction to Database Benchmarking with Benchmark Factory

32 Quest Software is now a part of Dell

On-Demand Webcast - Intro to Database Benchmarking and product demo

• Download the webcast now

Page 33: Introduction to Database Benchmarking with Benchmark Factory

33 Quest Software is now a part of Dell

• www.toadworld.com – Expert Blogs

– Articles

– How-To Videos

– User Forum

– Wiki

– Direct access to product experts and much more

Additional Resources

Page 34: Introduction to Database Benchmarking with Benchmark Factory

34 Quest Software is now a part of Dell

Additional Resources

• Benchmark Factory Home Page

• Download a free 30 day trial edition of Benchmark Factory

• White Paper – Top 10 Benchmarking Misconceptions

• On-Demand Webcast - Introduction to Database Benchmarking

Page 35: Introduction to Database Benchmarking with Benchmark Factory

35 Quest Software is now a part of Dell