getting started with azure sql db warner chaves sql mcm / mvp sqlturbo.com pythian.com

19
GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Upload: earl-peters

Post on 17-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

GETTING STARTED WITH AZURE SQL DB

Warner Chaves

SQL MCM / MVP

SQLTurbo.com

Pythian.com

Page 2: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Bio• SQL Server DBA for 10 years.

• Previously an L3 DBA at HP, now a Principal Consultant at Pythian in

Ottawa Ontario.

• SQL Server MCM and MVP.

• Twitter: @warchav

• Email: [email protected]

• Blog: sqlturbo.com

• Company site: pythian.com

Page 3: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Agenda

• GOAL: provide an introduction and overview of the Azure

SQL Database service.

• We’ll cover:

How to sign up.

Navigating the portal.

The different service levels.

New features coming cloud first.

Page 4: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Signing up!• Go here:• http://azure.microsoft.com/en-us/pricing/free-trial/

• You’ll need to put in your info but you won’t get charged until after the trial month if you don’t cancel.

Page 5: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

What is it?

• The SQL database as a service offering on Azure (OLTP).

• Fully managed by MS as part of Azure.

• It’s not a full instance. Many features that you’re used to

don’t exist because it’s fully managed.

• Used to be 2 size based tiers, now it’s 3 Service Level

based tiers.

Page 6: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Before and After

BASIC

S0 S1 S2 S3

P1 P2 P3

• Before: Web and Business. Based purely on size.• Now: 3 service tiers and sub tiers.

Page 7: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Basic• Size Limit: 2GB.• Point-in-time Restore: 7 days.• DR: Geo-Restore to another Azure region.• Auditing allowed.• Performance: 5 DTU.

Page 8: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Standard• Size Limit: 250GB.• Point-in-time Restore: 14 days.• DR: Geo-Restore, Standard

Geo-replication.• Auditing allowed.• Performance: 10-20-50-100

DTU.

S0 10 DTU

S1 20 DTU

S2 50 DTU

S3 100 DTU

Page 9: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Premium• Size Limit: 500GB.• Point-in-time Restore: 35 days.• DR: Geo-Restore, Standard or

Active Geo-replication.• Partitioning.• Columnstores.• Auditing allowed.• Performance: 100-200-1000 DTU.

P1 100 DTU

P2 200 DTU

P3 1000 DTU

Page 10: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Standard vs Active Geo-Replication• Standard

• RTO < 2h• RPO < 30m

• Active• RTO < 1h• RPO < 5m

• Active provides failover control.• Active provides up to 4 read-only replicas.

Page 11: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Official Pricing List• For the official published price please check:• http://azure.microsoft.com/en-us/pricing/details/sql-databa

se/

• The price can change depending on your specific agreements with Microsoft.

Page 12: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Demo: Walkthrough Azure Portal and SSMS experience

Page 13: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Demo: Point-in-Time Restore

Page 14: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

DTU?

• Database throughput unit.

• A comparison unit of integrated database performance.

• Blend of CPU + Data IO + Log IO + Memory.

• Based on an internal OLTP benchmark from the Azure

team.

Page 15: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Tier DTUsTier DTU Max Threads Max

SessionsBenchmark Throughput

Basic 5 30 300 16600 trx/hour

S0 10 60 600 521 trx/min

S1 20 90 900 934 trx/min

S2 50 120 1200 2570 trx/min

P1 100 200 2400 105 trx/sec

P2 200 400 4800 228 trx/sec

P3 1000 1600 19200 735 trx/sec

Page 16: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Demo: Basic vs S1 comparison

Page 17: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Cloud-first

• MS is now deploying features on Azure SQL that are NOT

in the “box” version of SQL Server:

Dynamic Data Masking.

Row-Level Security.

ALTER COLUMN ONLINE.

TRUNCATE PARTITION.

Upcoming: SQL Query Store.

Page 18: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

Demo: Dynamic Data Masking

Page 19: GETTING STARTED WITH AZURE SQL DB Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com

QA?