learn. connect. explore. - microsoft... · cheat sheet - storage •20,000 iops •500 iops/data...

14
Learn. Connect. Explore. Learn. Connect. Explore.

Upload: others

Post on 25-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Learn. Connect. Explore.Learn. Connect. Explore.

Page 2: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

SQL Performance: Demystified on Azure VMs

Sourabh Agarwal | Amit Banerjee

Sr. Premier Field Engineer | Microsoft Services

Page 3: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Who are We?

Sourabh Agarwal

Amit Banerjee

Page 4: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Agenda

Azure IaaS Cheat Sheet Demo Magic

Page 5: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Azure Infrastructure-as-a-Service

Your Virtual Machine on-the-go

Compute, Storage, Network, Memory

CAPEX vs OPEX

Page 6: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Building your Virtual Machine

Click,

type,

next

Post-

deployment

configuration

Page 7: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

DetailsMachine

name

Clouse

Service

Gallery ImageOperating

System

SQL Release

& Edition

Machine Size RAM CPU

Storage

Use an

existing or

new

Configuration

detailsPorts Affinity

Availability

Set

Building your Virtual Machine

Page 8: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Post-Deployment

No more Storage Admin

Local is good Follow Best Practices

Page 9: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Cheat Sheet - Storage• 20,000 IOPs

• 500 IOPs/Data Disk

• 64-KB allocation unit size for data and log files as well as tempdb

• Use Storage Spaces on Windows Server 2012 and above

• Do not store data on the temporary drive unless for tempdb and buffer pool extension on SSD drives (D-series VMs)

• Separate storage for data and log files

• Caching policy = NONE

• Backup to BLOB storage

• Disable GEO-replication on storage account

Page 10: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Cheat Sheet SQL Server• Use LPIM

• Use >A3 for Enterprise Edition & >A2 for Standard Edition

• Disable autoshrink

• Enable instant file initialization

• Use database page compression

Page 11: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

DEMO Magic

Up above the sky so high……

Create

Automate

… AND voila!!!

Page 12: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

ReferencesRelated references for you to expand your knowledge on the subject

Azure Pricing Calculator

http://azure.microsoft.com/en-us/pricing/calculator/?scenario=full

Pricing Overview

http://azure.microsoft.com/en-us/pricing/overview/

Getting started with a SQL Server VM on Azure

http://msdn.microsoft.com/library/azure/dn133151.aspx

Setting up a SQL Azure VM

http://troubleshootingsql.com/2014/05/30/setting-up-sql-server-

on-azure-for-testing/

Whitepaper: Performance Guidance for SQL Server VMs

http://msdn.microsoft.com/library/azure/dn248436.aspx

technet.microsoft.com/en-in

aka.ms/mva

msdn.microsoft.com/

Page 13: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use

Follow us online

Facebookfacebook.com/MicrosoftDeveloper.India

twitter.com/msdevindia

Twitter

sqlsourabhbanerjeeamit

www.troubleshootingsql.comwww.sqluninterrupted.com

Facebook.com/TroubleshootingSQL

[email protected]

Page 14: Learn. Connect. Explore. - Microsoft... · Cheat Sheet - Storage •20,000 IOPs •500 IOPs/Data Disk •64-KB allocation unit size for data and log files as well as tempdb •Use