dr greg low ceo and principal mentor sql down under

Post on 11-Jan-2016

220 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

Dr Greg Low

CEO and Principal Mentor SQL Down Under

AZR221

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?

Is Azure important to me?

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

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

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

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

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

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

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

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

Non-relational offerings

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

What does Azure offer for SQL?

SQL Server VM

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

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

SQL Server in a VM

Dr Greg Low

SQL Database

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

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

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

Reserved infrastructurePremium edition

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

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

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

SQL Database

Dr Greg Low

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

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

Federations

Dr Greg Low

SQL Reporting

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

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

SQL Reporting

Dr Greg Low

Data Sync

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

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

Hybrid Solutions

Hybrid HA

On Premise Domain Controller/AD

Hybrid filegroupsComing in SQL 2014

On Premise Domain Controller/AD

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

On Premise Domain Controller/AD

BACKUP TO URL

Dr Greg Low

What needs to be done differently?

Latency

Sydney / Melbourne data centres are coming!

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

Latency

Dr Greg Low

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

What should I do to prepare?

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

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

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

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/

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

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

Thanks!Email: greg@sqldownunder.comBlog: http://sqlblog.com/blogs/greg_lowWeb/podcasts: http://www.sqldownunder.com Twitter: greglow

© 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.

top related