Top Banner
The Database Sizing Workflow Presented by: Karl Arao 1
25
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Database Sizing Workflow

The Database Sizing Workflow

Presented by: Karl Arao

1

Page 2: The Database Sizing Workflow

whoami

Karl Arao• Senior Technical Consultant @ Enkitec• Performance and Capacity Planning Enthusiast

7+ years DBA experienceOracle ACE, OCP-DBA, RHCE, OakTableBlog: karlarao.wordpress.comWiki: karlarao.tiddlyspot.comTwitter: @karlarao

www.enkitec.com 2

Page 3: The Database Sizing Workflow

www.enkitec.com 3

200+

3

Page 4: The Database Sizing Workflow

Agenda

• The sizing scenarios/objective

• The general sizing workflow

– Extract – Visualize– Model – Project

• Putting it all together: Real Sizing Scenarios

www.enkitec.com 4

Page 5: The Database Sizing Workflow

www.enkitec.com 5

Page 6: The Database Sizing Workflow

The sizing scenarios/objective

• Consolidation, HW refresh, platform migration– How many can fit? – Can I combine A + B + ½ of C? – What's the ideal hardware to buy - "right sizing"

www.enkitec.com 6

Page 7: The Database Sizing Workflow

The sizing workflow

– Extract• Workload data

– Visualize• Consolidated peak workload

– Model• Provisioning plan

– Project• “Headroom”

www.enkitec.com 7

Page 8: The Database Sizing Workflow

www.enkitec.com 8

Page 9: The Database Sizing Workflow

Extract

www.enkitec.com 9

Page 10: The Database Sizing Workflow

AWR data• Top Events

– AAS CPU, latency, wait class• SYSSTAT

– PGA, SGA, physical memory, Executes/sec• IO

– IOPS breakdown, MB/s• CPU

– Load Average, NUM_CPUs, • Storage

– total storage size, per tablespace size• Services

– distribution of workload/modules• Top SQL

– PIOs, LIOs, modules, SQL type, SQL_ID, PX

Correlate across months of workload data! http://goo.gl/7uCk7w

Page 11: The Database Sizing Workflow

www.enkitec.com 11

Page 12: The Database Sizing Workflow

www.enkitec.com 12

OS data

Page 13: The Database Sizing Workflow

Visualize

www.enkitec.com 13

Page 14: The Database Sizing Workflow

Visualize – Workload Characterization

General Workload • top events• load profile (exec/sec)• top modules/services

CPU usage• CPU, cpuwait, scheduler

SGA/PGAIOPS, MB/s, latency

• IO breakdown• read/write ratio

Storage Size

www.enkitec.com 14

Page 15: The Database Sizing Workflow

• Tableau auto creates a time dimension for the time column “MM/DD/YY HH24:MI:SS” of AWR csv output

www.enkitec.com 15

Page 16: The Database Sizing Workflow

www.enkitec.com 16

• Summary and Underlying data

1-2AM

2-3AM

Page 17: The Database Sizing Workflow

www.enkitec.com 17

Consolidated CPU usage

Page 18: The Database Sizing Workflow

Model

www.enkitec.com 18

Page 19: The Database Sizing Workflow

What to model?

• the provisioning plan– instance mapping– node failure scenarios– resource management

• backups, test/dev, DR, ZFS• hardware options• memory upgrade• redundancy (normal or high)

www.enkitec.com 19

Page 20: The Database Sizing Workflow

www.enkitec.com 20

Page 21: The Database Sizing Workflow

Projection

www.enkitec.com 21

Page 22: The Database Sizing Workflow

www.enkitec.com 22

Page 23: The Database Sizing Workflow

Putting it all together

www.enkitec.com 23

Page 24: The Database Sizing Workflow

Summary

• The sizing scenarios/objective

• The 4 points of the sizing worklflow

www.enkitec.com 24

Page 25: The Database Sizing Workflow

References• Where did my CPU go? (webinar) http://www.youtube.com/watch?v=WXktSUbE4AU

(paper) http://goo.gl/qP1xqr• Book: Computer Architecture: A Quantitative Approach 5th Ed - Chapter1

Section1.10 Putting it all together Perf, Price, Power http://goo.gl/MXigAQ• Book: The Art of Scalability - Ch11 “Headroom” http://theartofscalability.com• Viz Example: CPU sizing 15 vs 60 mins snap interval http://goo.gl/rOJ9M4• Viz Example: Different views of IO performance http://goo.gl/i660CZ• Exadata Provisioning Worksheet http://www.slideshare.net/karlarao/pape-

rkaraoconsolidation-successstory

www.enkitec.com 25

karl.arao@enkitec.comkarlarao.wordpress.comkarlarao.tiddlyspot.com

@karlarao