the database sizing workflow
DESCRIPTION
TRANSCRIPT
![Page 1: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/1.jpg)
The Database Sizing Workflow
Presented by: Karl Arao
1
![Page 2: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/3.jpg)
www.enkitec.com 3
200+
3
![Page 4: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/5.jpg)
www.enkitec.com 5
![Page 6: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/8.jpg)
www.enkitec.com 8
![Page 9: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/9.jpg)
Extract
www.enkitec.com 9
![Page 10: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/10.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/11.jpg)
www.enkitec.com 11
![Page 12: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/12.jpg)
www.enkitec.com 12
OS data
![Page 13: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/13.jpg)
Visualize
www.enkitec.com 13
![Page 14: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/15.jpg)
• 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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/16.jpg)
www.enkitec.com 16
• Summary and Underlying data
1-2AM
2-3AM
![Page 17: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/17.jpg)
www.enkitec.com 17
Consolidated CPU usage
![Page 18: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/18.jpg)
Model
www.enkitec.com 18
![Page 19: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/19.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/20.jpg)
www.enkitec.com 20
![Page 21: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/21.jpg)
Projection
www.enkitec.com 21
![Page 22: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/22.jpg)
www.enkitec.com 22
![Page 23: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/23.jpg)
Putting it all together
www.enkitec.com 23
![Page 24: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/24.jpg)
Summary
• The sizing scenarios/objective
• The 4 points of the sizing worklflow
www.enkitec.com 24
![Page 25: The Database Sizing Workflow](https://reader035.vdocument.in/reader035/viewer/2022062511/54c68ae84a7959a2128b46c3/html5/thumbnails/25.jpg)
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