35
Performance Testing and OBIEE Robin Moffatt, WM Morrisons plc http://rnm1978.wordpress.com

Performance Testing and OBIEE

  • Upload
    lala

  • View
    57

  • Download
    0

Embed Size (px)

DESCRIPTION

Performance Testing and OBIEE. http://rnm1978.wordpress.com. Robin Moffatt, WM Morrisons plc. Introduction. Oracle BI specialist at Morrisons plc Big IT development programme at its early stages implementing OBIEE, OBIA, ORDM, all on Oracle 11g & HP-UX. The aim of this presentation. - PowerPoint PPT Presentation

Citation preview

Page 1: Performance Testing  and OBIEE

Performance Testing and OBIEE

Robin Moffatt, WM Morrisons plc http://rnm1978.wordpress.com

Page 2: Performance Testing  and OBIEE

Introduction

Oracle BI specialist at Morrisons plc

Big IT development programme at its early stages implementing OBIEE, OBIA, ORDM, all on Oracle 11g & HP-UX

Page 3: Performance Testing  and OBIEE

The aim of this presentation A Performance Tuning Methodology

OBIEE techie stuff

Learn from my mistakes!

Page 4: Performance Testing  and OBIEE

What is performance testing all about?

Response times Report ETL batch OLTP transaction

System impact Resource usage Scalability

Page 5: Performance Testing  and OBIEE

Why performance test?(Isn’t testing just for wimps?)

Check that your system performs Are the users going to be happy?

Baseline How fast is fast? ▪ How slow is slow?

Validate system design Do it right, first time

Capacity planning

Page 6: Performance Testing  and OBIEE

Why performance test?

It’s never too late “You’ll never catch all your

problems in pre-production testing. That’s why you need a reliable and efficient method for solving the problems that leak through your pre-production testing processes.”

— Cary Millsap - Thinking Clearly About Performance

Page 7: Performance Testing  and OBIEE

Why performance test?

Because it makes you better at your job

“At the very least, your performance test plan will make you a more competent diagnostician (and clearer thinker) when it comes time to fix the performance problems that will inevitably occur during production operation.”

— Cary Millsap - Thinking Clearly About Performance

Page 8: Performance Testing  and OBIEE

Performance Testing – What & WhyQuantifying response times

System impact

User expectations Problem diagnosis Design validation

Page 9: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

Timebox!

Performance Testing - How?

Evaluate design / config options

Do it rightDon’t “fudge it”

Do more testing

Iterative

approach

Be Methodical

Redefine test Do more

testing

Page 10: Performance Testing  and OBIEE

Define & build your test

Define – what are you going to test• Aim of the test• Scope• Assumptions• Specifics• Data, environment, etc

Build – how are you going to test it OBIEE specific

Define

Measure

Analyse

Review

Implement

•E.g. :• Check that the system

performs• Baseline performance• Prove system capacity• Validate system design

Page 11: Performance Testing  and OBIEE

Consider your test scopeMore components = more complex = more variables =

larger margin of errorFewer components = easier to manage = more precise =

more efficient

Define

Measure

Analyse

Review

Implement

Page 12: Performance Testing  and OBIEE

OBIEE stack

Database

Presentation Services

BI Server

Report / Dashboard

Logical SQL

Physical SQL

statement(s)

Data set(s)

Data set

Rendered report

Excludes App/Web server & presentation services plug-in

Define

Measure

Analyse

Review

Implement

Page 13: Performance Testing  and OBIEE

OBIEE testing options

Database

Presentation Services

BI Server

nqcmd

SQL Client

LSQL

Physical

SQL

Data set(s)

Data set

Rendered

report

LSQL

PhysicalSQL

User & Stopwatc

h

Load Testing tool(eg.

LoadRunner, OATS)

Define

Measure

Analyse

Review

Implement

Report / Dashboard

Page 14: Performance Testing  and OBIEE

OBIEE testing options

Database

BI Server

nqcmd

Physical

SQL

Data set(s)

LSQL

Define

Measure

Analyse

Review

Implement

Page 15: Performance Testing  and OBIEE

nqcmdDefine

Measure

Analyse

Review

Implement

Usage Tracking or

NQQuery.log

Test

sc

ript

BI Serve

rData

nqcmd

Logical SQL

Logical SQL Logical

SQL

Page 16: Performance Testing  and OBIEE

Mas

ter t

est s

crip

t

nqcmdDefine

Measure

Analyse

Review

Implement

Test

sc

ri pt

BI Serve

rData

nqcmd

Logical SQL

Test

sc

ri pt nqcmd

Test

sc

ri pt nqcmd

Test

sc

ri pt nqcmd

Page 17: Performance Testing  and OBIEE

LoadRunnera.k.a. HP Performance Centre

Simulates user interaction – HTTP traffic

Powerful, but can be difficult to set up Ajax complicates things

Do you really need to use it?

Tools Fiddler2 FireBug

Reference: My Oracle Support – Doc ID 496417.1 http://rnm1978.wordpress.com/category/loadrunner

Define

Measure

Analyse

Review

Implement

Page 18: Performance Testing  and OBIEE

Defining your test - summary Be very clear what the aim of your

test is You probably need to define multiple

tests Different points on the OBIEE stack

to interface Pick the most appropriate one

Write everything down!

Define

Measure

Analyse

Review

Implement

Page 19: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

Page 20: Performance Testing  and OBIEE

OBIEE measuring & monitoring

Database

Presentation Services

BI Server

Presentation Services plug-

in

App Server

Web Server

Apache log

OAS log

Analytics log

sawserver.log

NQServer.log

NQQuery.log

systems management

Enterprise Manager

BI Management Pack

Usage Trackin

g

PerfMon(windows

only)

jConsole etc

Presentation

services

Enterprise Manager

ASH, AWR, SQL

Monitor

Define

Measure

Analyse

Review

Implement

Server metricse.g. : IO, CPU,

Memory

PerfMon (Windows)

Oracle OS Watcher (unix)

Enterprise Manager (Oracle)

Page 21: Performance Testing  and OBIEE

Oracle SQL MonitorDefine

Measure

Analyse

Review

Implement

Page 22: Performance Testing  and OBIEE

Measure - summary

Lots of different ways to measure

Build measurement into your test plan Automate where possible▪ Easier▪ Less error

Define

Measure

Analyse

Review

Implement

Page 23: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

Page 24: Performance Testing  and OBIEE

Analysing the dataDefine

Measure

Analyse

Review

Implement

Page 25: Performance Testing  and OBIEE

Analysing the dataDefine

Measure

Analyse

Review

Implement

Page 26: Performance Testing  and OBIEE

Analysing the dataResponse time

11932

102123

Response time 1

1

1

2

2

2

3

3

9

10

Average (mean)3.4

50th percentile (Median)290th percentile9.1

Define

Measure

Analyse

Review

Implement

Page 27: Performance Testing  and OBIEE

Recording data about the test

Define

Measure

Analyse

Review

Implement

DashboardRequestsLogical SQLPhysical SQL

Execution plan

Page 28: Performance Testing  and OBIEE

Extending Usage Tracking

S_NQ_ACCTSTART_TS ROW_COUNT TOTAL_TIME_SEC NUM_DB_QUERY QUERY_TEXT QUERY_SRC_CD SAW_SRC_PATH SAW_DASHBOARD

OBIEE_REPLAY_STATEMENTSqt_ora_hashquery_textsaw_pathdashboard

OBIEE_REPLAY_STATStestidtestenvqt_ora_hashstart_ts response_time row_count db_query_cnt

Define

Measure

Analyse

Review

Implement

Page 29: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

Analyse

Evaluate design / config options

Do it rightDon’t “fudge it”

Iterative

approach

Timebox!

Page 30: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

ReviewIterati

ve approa

chRedefine test

Continue testing

Implement

Page 31: Performance Testing  and OBIEE

ReviewDefine

Measure

Analyse

Review

Implement

Page 32: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

ImplementIterati

ve approa

ch

Page 33: Performance Testing  and OBIEE

Lessons Learnt You won’t get your testing right first time

There’s no shame in that Don’t cook the books ▪ Better to redefine your test than invalidate its results

Stick to the methodology Don’t move the goalposts Very tempting to pick off the “low-hanging fruit” ▪ If you do, make sure you don’t get indigestion…

Timebox

Test your implementation!

Page 34: Performance Testing  and OBIEE

Define

Measure

Analyse

Review

Implement

Performance Testing OBIEE

Evaluate design / config options

Do it rightDon’t “fudge it”

Do more testing

Iterative

approach

Be Methodical

Redefine test Do more

testing

[email protected] · http://rnm1978.wordpress.com · http://twitter.com/rnm1978

Page 35: Performance Testing  and OBIEE

#EOF