Dr Greg Low CEO and Principal Mentor SQL Down Under.

53
Windows Azure SQL Database and Windows Azure SQL VM Concepts for DBAs Dr Greg Low CEO and Principal Mentor SQL Down Under AZR221

Transcript of Dr Greg Low CEO and Principal Mentor SQL Down Under.

Page 1: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Windows Azure SQL Database and Windows Azure SQL VM Concepts for DBAs

Dr Greg Low

CEO and Principal Mentor SQL Down Under

AZR221

Page 2: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Topics for todayIs Azure important to me?What does Azure offer for SQL?What needs to be done differently?What should I do to prepare?

Page 3: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Is Azure important to me?

Page 4: Dr Greg Low CEO and Principal Mentor SQL Down Under.

It's partly about costOn-premises management is expensiveCapital equipmentRack spacePowerBandwidthScale up / scale down challengesStaff training and retentionSeasonal variationsOn-demand provisioning (systems and storage)

Page 5: Dr Greg Low CEO and Principal Mentor SQL Down Under.

It's partly about predictable managementOn-premises management is hardMost systems aren't managed consistentlyGood management requires advanced skillsets

Azure offersLarge-scale predictable management processesPredictable SLAsRolling upgrades

Page 6: Dr Greg Low CEO and Principal Mentor SQL Down Under.

But it's mostly about agilityOn-premises management is slowSlow to provisionSlow to adapt to changeBusiness opportunities are often missedPAYG

Page 7: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What's in Azure?

virtual network

traffic managerHDInsight tables

blob storage

SQL database

mobile services

caching media cdn hpcintegratio

n

virtual machines web sites

service busidentity

cloud services

app services

networksdata servicescompute

Page 8: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What's in Azure?

virtual network

traffic managerHDInsight tables

blob storage

SQL database

mobile services

caching media cdn hpcintegratio

n

virtual machines web sites

service busidentity

cloud services

app services

networksdata servicescompute

Page 9: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What's in Azure?

virtual network

traffic managerHDInsight tables

blob storage

SQL database

mobile services

caching media cdn hpcintegratio

n

virtual machines web sites

service busidentity

cloud services

app services

networksdata servicescompute

Page 10: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What's in Azure?

virtual network

traffic managerHDInsight tables

blob storage

SQL database

mobile services

caching media cdn hpcintegratio

n

virtual machines web sites

service busidentity

cloud services

app services

networksdata servicescompute

Page 11: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What's in Azure?

virtual network

traffic managerHDInsight tables

blob storage

SQL database

mobile services

caching media cdn hpcintegratio

n

virtual machines web sites

service busidentity

cloud services

app services

networksdata servicescompute

Page 12: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Non-relational offerings

In this session, we're mostly discussing SQL and relational

Page 13: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What does Azure offer for SQL?

Page 14: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Server VM

Page 15: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Infrastructure as a service (IaaS)SQL Server installed in an Azure VMCan join corporate domain via Azure Virtual NetworksFull control and flexibilityHighly customizableNo hardware costsHigh availability optionsAdvanced securitySupports full BI stackNeeds to be managed

Page 16: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Windows Azure VM size & bandwidthVirtual

Machine Size

CPU Cores Memory Allocated

Bandwidth (Mbps)

Maximum data disks (each up to

1 TB)

ExtraSmall Shared 768 MB 5 1

Small 1 1.75 GB 100 2

Medium 2 3.5 GB 200 4

Large 4 7 GB 400 8

ExtraLarge 8 14 GB 800 16

A6 4 28 GB 1,000 8

A7 8 56 GB 2,000 16

Come to AZR-323 on Friday to cover configuration and performance

Page 17: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Server in a VM

Dr Greg Low

Page 18: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Database

Page 19: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Platform as a service (PaaS)Windows Azure SQL Database (was SQL Azure)SQL as a fully managed serviceMassively distributed clusterBased on commodity hardwareFocus on logical vs physical design

HA built-inPrimary plus two replicasNear-instant failoverRolling upgrades only when all availableRead -> PrimaryWrite -> Quorum

Page 20: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Multi-tenant architectureLogical servers assigned to subscriptionsServer = TDS endpoint at gateway

master databaseDifferent to on-premises versionView for firewall rules

Security built-inLogical firewallDOS attack detectionSSL connectivity

Page 21: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Database editionsShared infrastructureWeb up to 5GBBusiness up to 150GBPricing encourages multi-tenantCould be on different physical servers

Reserved infrastructurePremium edition

Page 22: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL compatibilityLarge subset of T-SQL supportedTables must have a clustered index

Not all components supportedAgent, Full-Text, Service BrokerDependencies, CLRContinuous improvements

Page 23: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Backup and restoreCREATE DATABASE AS COPY OFTransactionally-consistent duplicate databaseAsync operation

Database import/exportUses Azure StorageNot transactionally-consistentQuiesce database first or use copy database

Automated exportRecently introduced

Page 24: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Database

Dr Greg Low

Page 25: Dr Greg Low CEO and Principal Mentor SQL Down Under.

FederationsSupport scale-out by shardingSimplify multi-tenancy supportOnline split operation (merge coming)Distribution based on single column

USE FEDERATION Queries can be filtered/non-filteredDesign for performance via parallelism

Page 26: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Table types in federated systems

Table Type Details

Federated Distributed by keyContains data that is the reason for federation

Reference Cloned to each federation memberTypically small lookup tables

Central Created in federation rootTypically low-traffic objects eg metadata

Page 27: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Federations

Dr Greg Low

Page 28: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Reporting

Page 29: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Reporting (also PaaS)SSRS delivered as a managed servicePrimary target is embedded reporting in web appsRapid provisioningBest provisioned in same DC as SQL Database

Page 30: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Compatibility with SSRSHigh degree of compatibility

Same Report designer and RDL

Deployment mechanisms

Web services and URL access

Report viewer control

Item level permissions

Different SQL authentication only

SSL only

WASD data sources only

Extra Built-in HA

Elastic scale-out

Less Report Builder

Schedules, subscriptions

Custom extensions, external images

Page 31: Dr Greg Low CEO and Principal Mentor SQL Down Under.

SQL Reporting

Dr Greg Low

Page 32: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Data Sync

Page 33: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Data Sync (also PaaS)Based on Sync FrameworkDelivered as a managed Azure serviceHub and spoke topology Conflict resolution policy (client or hub wins)Sync directions (to hub, from hub, bi-directional)Sync schedule (manual or 5 mins to 1 month)Based on change trackingDatasets can be filtered

Windows Azure SQL Database

SQL Azure Database

Hub

On-premises

SQL Server

Page 34: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Sync With On-Premises SQL ServerAgent service based solutionShared key to connect with hubClient -> Client sync requires two hops

Windows Azure SQL Database

SQL Azure Database

Hub

On-premises

SQL Server

Agent Service

Page 35: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Hybrid Solutions

Page 36: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Hybrid HA

On Premise Domain Controller/AD

Page 37: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Hybrid filegroupsComing in SQL 2014

On Premise Domain Controller/AD

Page 38: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Hybrid backup/restoreAlready availableSQL Server 2012 SP1BACKUP TO URLRESTORE FROM URLUses Azure storage account

On Premise Domain Controller/AD

Page 39: Dr Greg Low CEO and Principal Mentor SQL Down Under.

BACKUP TO URL

Dr Greg Low

Page 40: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What needs to be done differently?

Page 41: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Latency

Sydney / Melbourne data centres are coming!

Page 42: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Avoid latency issuesNeed toAvoid chatty interfacesMinimize round tripsChoose appropriate data centre (via testing not geography)Co-locate applications and data within DC

Page 43: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Latency

Dr Greg Low

Page 44: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Architect for scale-out vs scale-upDatabase needs appropriate design (no magic fix)IndexingQueriesProgramming library choice

Scale-out vs scale-upOn-premises => buy enough hardwareAzure SQL Database => design for multi-DB, enough DBsUse async (non-blocking) design patterns

ReliabilityConnection managementTransaction management

Page 45: Dr Greg Low CEO and Principal Mentor SQL Down Under.

What should I do to prepare?

Page 46: Dr Greg Low CEO and Principal Mentor SQL Down Under.

ExperimentAzure offers low cost easy trials and experimentationSQL DatabaseSQL ReportingSQL Server VMsAzure TablesHDInsightVirtual NetworksIdentity Management

Page 47: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Investigate new areasBe ready to provide advice within your organizationSQL Server 2014 CTP image availablePowerShell skills will be very useful

Page 48: Dr Greg Low CEO and Principal Mentor SQL Down Under.

MSDN Subscribers: you’ve got it, now use it

Redeem your benefit today!http://bit.ly/140upRt

*No purchase necessary. Open to eligible Visual Studio Professional, Premium or Ultimate with MSDN subscribers as of June 1, 2013. Ends 11:59 p.m. PT on September 30, 2013. For full official rules including odds, eligibility and prize restrictions see website. Sponsor: Microsoft Corporation. Aston Martin is a trademark owned and licensed by Aston Martin Lagonda Limited.

Develop & Test on cloud VMs at no additional cost!Activate your MSDN Benefit & try it by 9/30You could win* an Aston Martin V8 Vantage!

YOUR OWNQR CODEGOES HERE

Page 49: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Developer Network

Resources for Developers

http://msdn.microsoft.com/en-au/

Learning

Virtual Academy

http://www.microsoftvirtualacademy.com/

TechNet

Resources

Sessions on Demand

http://channel9.msdn.com/Events/TechEd/Australia/2013

Resources for IT Professionals

http://technet.microsoft.com/en-au/

Page 50: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Track Resources• Sign up for a Free Azure Trial:

http://www.windowsazure.com/en-us/pricing/free-trial/

• Activate your Azure MSDN Benefits: http://msdn.microsoft.com/dn369243

Page 51: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Related contentAZR-323 SQL Server Performance Tuning for Windows Azure Virtual Machines

Thursday 11:30 Arena 1A

Product Demo Stations

Find Me Later At MVP tables in community area

Page 52: Dr Greg Low CEO and Principal Mentor SQL Down Under.

Thanks!Email: [email protected]: http://sqlblog.com/blogs/greg_lowWeb/podcasts: http://www.sqldownunder.com Twitter: greglow

Page 53: Dr Greg Low CEO and Principal Mentor SQL Down Under.

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.