Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

27
Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233

Transcript of Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Page 1: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Scalable SQL Server Design with just a Credit CardPeter WardChief Technical Architect

DBI233

Page 2: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

About Peter Ward

Chief Technical Architect WARDY IT Solutions Email: [email protected] Twitter: @wardy

SQL Server Microsoft Most Valuable Professional (MVP)Microsoft Virtual Technology Solutions Professional (TSP)WARDY IT Solutions

Australia’s leading SQL Server specialistsMAPA SQL Server Partner of the Year since 2009

Page 3: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Contents

I’m a DBA – what is this cloud thing?The SQL Server Cloud ContinuumSQL Server Elasticity

Page 4: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.
Page 5: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Scaling Up

Scaling up = Buying a bigger boxEasy to engineer but high capital expenseDoes not sale linearly

~1.5 x scaling as sockets doubleCost is not linear

Page 6: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Scaling Up Cost

2P Xeon E7-2870 (Max 512GB, 8 Slots)4P Xeon E7-4870 (Max 1024GB, 10 Slots)8P Xeon E7-8870 (Max 2048GB, 20 Slots)

2P 4P 8P $-

$40,000

$80,000

$120,000

$160,000

Cost vs Sockets

http://www.intel.com/content/www/us/en/it-management/intel-it/intel-it-server-sizing-tool-demo.html - 10th Aug 2012

Page 7: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Scaling Out

Scaling Out = Adding more boxes Limited SQL Server Support

Transactional ReplicationPeer-to-Peer ReplicationDistributed Partitions ViewsAvailability Replicas

Page 8: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.
Page 9: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

What is Cloud Computing?

Cloud computing is the use of computing resources that are delivered as a service over

a network

Page 10: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

SQL Server vs. Windows Azure SQL Database Feature SQL Server Windows Azure SQL Database

Data Storage No size limits as such Currently supports a database of up to 150 GB of data, in increments of 10 GB.

Authentication • SQL Server Authentication• Windows Authentication

• SQL Server Authentication

Schema No such limitation Does not support heaps. All tables must have a clustered index before data can be inserted.

TSQL Supportability

No such limitation Certain Transact-SQL commands are fully supported; some are partially supported while others are unsupported.

SQL Agent

Supported Cannot run SQL agent or jobs on SQL Database.

SSIS Supported SSIS service not available on Azure platform.

Page 11: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Introducing Windows Azure VM

management portal

image library

storage

virtual machine

• Persistent, durable VM disks• 99.9% SLA

• SQL Server and AD support• Gallery images• Cloud First VM Creation Experience

Page 12: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

The Big 3

Is it secure?

What about performance?

What does it cost?

Page 13: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Is it secure?

Layer DefencesUser • Account management, training and awareness, screening

• Open and interoperable access control service

Data • Strong storage keys for access control• SSL support for data transfers between all parties

Application • Front-end .NET framework code running under partial trust• Windows account with the lowest level of privileges

Host • Stripped-down version of Windows Server 2008 R2• Host boundaries enforced by external hypervisor

Network • Host firewall limiting traffic to VMs• VLANs and packet filters in routers

Physical • World-class physical security provided by GFS• ISO 27001, SSAE 16, FISMA Moderate, and more

Page 14: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

What about performance?

Understand app performance constraintsBenchmark on different VM sizes (Set-AzureVMSize)Use SQLIOTraditional performance troubleshooting & Azure Storage Analytics

Use default max server

memoryMove data / log off OS diskDisable write caching for data on OS disk (Set-AzureOSDisk)Consider putting tempdb on non-persistent cache disk (D:\)Consider using database page compression to reduce I/O

Page 15: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

What does it cost?

Compute Instance Size

CPU Cores Memory Preview GA

Extra Small Share 768 MB $0.013 $0.02Small 1 1.75 GB $0.08 $0.115Medium 2 3.5 GB $0.16 $0.23Large 4 7 GB $0.32 $0.46Extra Large 8 14 GB $0,64 $0.92

https://www.windowsazure.com/en-us/pricing/details/ http://www.windowsazure.com/en-us/pricing/calculator/?scenario=virtual-machines

Virtual Machines - Windows Price/Hour (Pay-As-You-Go)

Page 16: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Data Centre's over Time

Raw Iron IaaS PasS

Page 17: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

SQL Server Cloud Continuum

Low Control

Shar

edLo

wer

cos

tD

edic

ated

Hig

her c

ost

High Control

100% Compatibility Rapid self-service provisioning

SQL Server in Windows Azure VM Virtualized Machine

SQL Server Physical Machine (raw iron)

Full hardware controlRoll-your-own HA/DR/scale

Managed database serviceFocus on business logic

Virtualized DatabaseWindows Azure SQL Database

Elastic/Self-Service capabilities Full hardware control

SQL Server Private Cloud Virtualized Machine on premises

IaaS

IaaS

PaaS

Page 18: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

How to run SQL Server in a VM

• Upload VHD to WA storage

• SQL Server 2008 and up• License mobility

• Evaluation of SQL Sever 2012

• Windows Server 2008 R2 SP1

• Includes SSIS, SSRS & SSAS

• Image refresh monthly• Once deployed you

patch

Bring your own (BYO) image

Use the Gallery image

Page 19: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

demo

Getting started with Windows Azure VM

Page 20: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Connecting to your own image

Client ComputerYour VHD uploaded to Windows Azure

Windows Remote Desktop

Virtual Machine Firewall

Virtual Machine Desktop

Windows Azure

EndpointDifferent from

3889

!!

• Enable remote desktop connection in VHD• Max OS VHD size – 127GB• Use static VHD

Page 21: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

demo

Application Migration

Page 22: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Real world deployment

WARDY IT Solutions(Brisbane)

AD / DNS

SQL Servers

S2S VPN

Device

Site-to-Site (S2S) VPN Tunnel

VNGateway

SQL 2012

Server

Internet (WAN)

Web Front-EndsAzure Virtual

Network

AS Servers

Twitter Trends – http://www.wardyit.com/techedtrends

Page 23: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

demo

Implementing Disaster Recovery

Page 24: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Pay for what you use

No App Changes Required

Library of VM Templates

Flexibility & Control

Managed Infrastructur

e

Low TCO for Existing

Apps

Full SQL Server

Capability

Cloud first VM Creation Experience

Full Control of Virtual Machine

Common Identity (Active Directory Integration)

Fully Managed Infrastructure

99.9% SLA for Virtual Machine

Single Pane of Glass to Manage

High Availability

Advanced Security (Transparent data encryption & auditing)

Full Business Intelligence Functionality

Page 25: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Next Steps

Sign up for the preview: http://www.windowsazure.com/Provision a VMWindows Azure how to guidesGetting started with SQL Server on a Windows Azure virtual machineProvisioning a SQL Server virtual machine on Windows Azure SQL in WA VM Early Adoption Cook Book

Page 26: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

Questions?

Peter [email protected] @wardy0403 177 761www.wardyit.com

Page 27: Scalable SQL Server Design with just a Credit Card Peter Ward Chief Technical Architect DBI233.

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.