josepsson - performance accountability

16
Moving Performance Accountability to the Developer Gudmundur Josepsson Index Software Solutions and Consulting

Upload: rocker12

Post on 06-Mar-2016

214 views

Category:

Documents


0 download

DESCRIPTION

Moving Performance Accountability to the Developer Gudmundur Josepsson Index Software Solutions and Consulting Topic 2 • Traditionally considered the DBA’s responsibility • “I don’t need to know this. This is DBA stuff.” • The code-tennis • The end-users and the business suffer 3 • Bickering about “who killed who” • What it really comes down to is DBAs and developers versus the end-users • I’ve never seen a problem fixed by finger-pointing • The Metropolis analogy (free movie) 4

TRANSCRIPT

Page 1: Josepsson - Performance Accountability

Moving Performance Accountability to the

Developer

Gudmundur JosepssonIndex Software Solutions and Consulting

Page 2: Josepsson - Performance Accountability

2

Topic• Application performance –

whose responsibility?• Case study:

The un-tunable application• The right way• Q&A

Page 3: Josepsson - Performance Accountability

3

Application performance• Traditionally considered the DBA’s

responsibility• “I don’t need to know this. This is DBA

stuff.”• The code-tennis• The end-users and the business suffer

Page 4: Josepsson - Performance Accountability

4

DBA vs developer• Bickering about “who killed who”• What it really comes down to is DBAs and

developers versus the end-users• I’ve never seen a problem fixed by finger-

pointing• The Metropolis analogy

(free movie)

Page 5: Josepsson - Performance Accountability

5

Metropolis / Oracle• City• Good life• Big machine• Workers

• Application• Good response• Oracle• IT pros

Page 6: Josepsson - Performance Accountability

6

Case study:The un-tunable application• An interactive banking application• Displayed summary information from

many other applications• Ran thousands of times during business

hours• Slow: waiting end-users, waiting

customers• “As fast as it’s going to be”• “Make it faster, anyway”

Page 7: Josepsson - Performance Accountability

7

Case study:The un-tunable application• Previous attempts to optimize had failed• The usual stuff did not work– Statistics– Re-org – Session parameters– Database parameters

• “Do you think it will run faster on SQL Server?”

Page 8: Josepsson - Performance Accountability

8

The database is fine• Nothing irregular in system-wide database

monitoring tools• OS performance stats were good– CPU load is fine– Memory usage is fine– Disk response times are fine– Network is fine

Page 9: Josepsson - Performance Accountability

9

“We can’t change the code”• Application developed in-house• All supporting applications developed

in-house• A decision was made that the application

had to use a layer of views to get data from the other applications

• If more or different data was needed the views were made bigger

Page 10: Josepsson - Performance Accountability

10

ArchitectureUn-tunable application

Sub-app 1 Sub-app 2 Sub-app 3

. . .

Oracle

Page 11: Josepsson - Performance Accountability

11

What can we do?• The database seems to be fine, the DBAs

swear it’s not their problem• We can’t touch the code• The manager is yelling• Help...• ...please

Page 12: Josepsson - Performance Accountability

12

Tools and methods• Figure out which part of the application is

the slowest, where is the time being spent• Instrument the code• Extended SQL trace• A profiler (well, THE profiler)

Page 13: Josepsson - Performance Accountability

13

“The wrong castle”• Playing around with database parameters

was not the solution• The right answer was to refuse to use the

generic views and specify exactly what was needed

• The result was more views but each view was smaller, faster and more manageable

Page 14: Josepsson - Performance Accountability

14

Results• Lookup for biggest customers down from

30+ seconds to less than 8 seconds• Average customer from ~8 seconds to

less than 1 second• Happy developers• Happy DBAs• HAPPY END-USERS!

Page 15: Josepsson - Performance Accountability

15

The right way• Work together• Know what your application is doing• Get facts• Don’t fight the symptoms –

solve the problem!

Page 16: Josepsson - Performance Accountability

16

Thank you!