Download presentation
Presentation is loading. Please wait.
Published byJessica Horn Modified over 8 years ago
1
27-29 August 2015. NIMHANS Convention Centre, Bangalore, India. Modernizing The Data Platform Flying Through the Clouds Performance Tuning in Azure Joey D’Antoni 26 September 2015
2
Joey D’Antoni Joey has over 15 years of experience with a wide variety of data platforms, in both Fortune 50 companies as well as smaller organizations He is a frequent speaker on database administration, big data, and career management Principal Consultant, Denny Cherry and Associates MSCE, Business Intelligence, Database Administration He wants you to make sure you can restore your data Joeydantoni.com
3
Thanks to our platinum sponsors : PASS SQL Saturday – Holland - 20153 |
4
Thanks to our silver and gold sponsors : PASS SQL Saturday – Holland - 20154 |
5
Agenda Performance Tuning Saves MoneyUnderstanding SQL Database PerformanceIaaS PerformanceStorage and Networking
6
Welcome to SQL DB One of the earliest Azure offerings (SQL Azure)Originally a subset of both T-SQL language and SQL engineNow nearly code complete with SQL ServerSome features are ahead of current release (SQL 2014)
7
Benefits of SQL DB Ease of deployment Simplicity of management Scale up and scale out options Flexibility
8
How I TUNE a SERVER Check Server Configuration Read Error Log Look at Wait Stats Look in Plan Cache Tune Queries 8 MY METHODOLOGY
9
Performance Bottlenecks CPUDiskMemoryNetworkBlocking/Locking 9 I STOLE THIS FROM TOM © 2015 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
10
Azure SQL DB Performance
11
Cost Model Not CALs, No Cores, No License FeesServer / DatabaseBandwidthData Out - Data in is FREE! 11
12
SQL Database DTUs Database Throughput Unit (DTUs) Measurement of relative performance Blended measure of CPU, memory and Ios. DTUs are orders of magnitude Azure SQL Database Benchmark
13
SQL Database Service Tiers and Performance Levels BasicStandard S1—934 Transactions Per Minute S2—2750 Transactions Per Minute S3—5100 Transactions Per Minute Premium P1—105 Transactions Per Second P2—228 Transactions Per Second P3—735 Transactions Per Second
14
New Performance Options
15
So What Does This Cost?
16
Azure SQL DB Management Management features have been limitedPast--No way to gather query execution plansSome for security through obscuritySlowly adding Dynamic Management ViewsExtended Events
17
DMVs Expose metadata about system performance and operations A subset of what is available in SQL Server Most missing views are related to OS and server management
18
Extended Events Replacement for SQL Profiler Collect execution plans from Azure SQL DB Not completely rolled out yet
19
Challenges With Azure DB I/O Performance Space Management Multi-tenant scenarios Bandwidth
20
I/O Performance and Space Management Optimize Data TypesUse Compression AggressivelyOn Premium Tier consider using clustered columnstore
21
Bandwidth Minimize result sets—perform aggregations in databaseKeep application services close to dataConsider caching reportsTry to eliminate ad-hoc reporting
22
Other Keys to Performance Consider application tier cachingQuery BatchingFunctional Partitioning
23
Choosing an Initial Service Level Choose the lowest level to start Monitor performance carefully Resizing is online operation
24
Monitoring Performance for Changing Size
25
Monitoring Performance Understand Peak CPU, Memory, IOConcurrencyNeed for low latency
26
Resource Use Sys.resource_stats Aggregated every 5 minutes MSDN Performance Guide
27
Tuning Your Application Reduce the “chattyness” of your applications Very intensive monolithic workloads Non- optimized queries Databases with concurrency issues
28
Elastic Database Pools Define the pricing tier and databases to include Pool dynamically adjusts resources to peak DTUs
29
Azure IaaS Performance
30
Azure Infrastructure as a Service Azure is really cool, really big VM farmIt should mostly be treated and tuned as suchMost performance problems are IO relatedUnderstand your workload and have good baselines
31
Network Bandwidth The bandwidth to your storage depends on the size of your VMThe bigger your VM, the more bandwidth you have This ties to storage—only DS machines are eligible for premium storage. Use Regional VNets to colocate app and DB tier
32
Disk Considerations for Performance Multiple Disk Devices—each disk device can do 62.5 IOPS (64k)Premium Storage—a necessity for a busy server Starts with 400 IOPs (64k) Can go up to 6250 IOPs (64k) Don’t use cachingUse D: (which is always temporary SSD) for TempDB space
33
Storage Spaces You can use storage spaces to stripe across volumes to get IOPs Stripe Size 64k for OLTP and 256k for OLAP workloads Try to avoid auto-growth events http://bit.ly/AzureSQLPerf
34
Summary Use the tools and metadata MS provide to help optimize your solutions Cloud architecture is different—think about ways to minimize I/O and network chattiness VMs do offer good performance—but at a cost
35
Please review the event and sessions http://www.sqlsaturday.com/434/eventeval.aspx http://www.sqlsaturday.com/434/eventeval.aspx http://www.sqlsaturday.com/434/sessions/sessionevaluation.aspx http://www.sqlsaturday.com/434/sessions/sessionevaluation.aspx PASS SQL Saturday – Holland - 201535 |
36
Thank you for your time! Modernizing The Data Platform Connect us with us: @SQLServerGeeks facebook.com/SQLServerGeeks facebook.com/groups/theSQLGeeks www.SQLServerGeeks.com admin@SQLServerGeeks.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.