The Database Sizing Workflow

Post on 27-Jan-2015

113 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

Transcript

The Database Sizing Workflow

Presented by: Karl Arao

1

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

www.enkitec.com 3

200+

3

Agenda

• The sizing scenarios/objective

• The general sizing workflow

– Extract – Visualize– Model – Project

• Putting it all together: Real Sizing Scenarios

www.enkitec.com 4

www.enkitec.com 5

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

The sizing workflow

– Extract• Workload data

– Visualize• Consolidated peak workload

– Model• Provisioning plan

– Project• “Headroom”

www.enkitec.com 7

www.enkitec.com 8

Extract

www.enkitec.com 9

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

www.enkitec.com 11

www.enkitec.com 12

OS data

Visualize

www.enkitec.com 13

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

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

www.enkitec.com 15

www.enkitec.com 16

• Summary and Underlying data

1-2AM

2-3AM

www.enkitec.com 17

Consolidated CPU usage

Model

www.enkitec.com 18

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

www.enkitec.com 20

Projection

www.enkitec.com 21

www.enkitec.com 22

Putting it all together

www.enkitec.com 23

Summary

• The sizing scenarios/objective

• The 4 points of the sizing worklflow

www.enkitec.com 24

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

top related