understanding the azure platform march 2010

70
Understanding Azure David Gristwood Application Architect, Microsoft blogs.msdn.com/david_gristwood

Upload: davidgristwood

Post on 27-Jan-2015

114 views

Category:

Technology


7 download

DESCRIPTION

Understanding The Azure Platform Technical overview

TRANSCRIPT

Page 1: Understanding The Azure Platform   March 2010

Understanding Azure

David GristwoodApplication Architect, Microsoft blogs.msdn.com/david_gristwood

Page 2: Understanding The Azure Platform   March 2010

Why a Cloud Platform?

Reduce capital & operations costs Simplify application deployment &

management Simplify scaling to internet scale Cost effectively handle peak loads Focus on new functionality & not

infrastructure

Page 3: Understanding The Azure Platform   March 2010

Azure is Live…..

Page 4: Understanding The Azure Platform   March 2010

The Azure Philosophy

Page 5: Understanding The Azure Platform   March 2010

Azure is about Scale

• Azure is designed from the ground up for true Internet scale

• Global presence• Ride the “network

effect”• LinkedIn: 16 months for first

million users, 11 days for most recent million

• Facebook: 5 years to hit 250m users, 8 months to double

• Scale up and scale down

• Supports the “Scale Fast, Fail Fast” model

www.flickr.com/photos/januszbc/1776184496

Page 6: Understanding The Azure Platform   March 2010

Characteristics of Azure Applications

“Scale & Elasticity” • Need massive

scale• Need high

reliability• Have variable load• Have short or

unpredictable lifetime

http://www.flickr.com/photos/39919537@N06/3666813048/

Page 7: Understanding The Azure Platform   March 2010

Helps your Systems Scale

www.flickr.com/photos/39818355@N00/2128626176

• Most architecture is hidden inside code

• Azure encourages you to define your application into constituent parts

• Azure can scale the parts of your application as appropriate

Page 8: Understanding The Azure Platform   March 2010

Flexible Architecture

• Systems evolve over time

• Cloud is not an “all or nothing” proposition

• Azure makes it easier to extend to the cloud

www.flickr.com/photos/tomkpunkt/3695066577

Page 9: Understanding The Azure Platform   March 2010

Opening up the Cloud

www.flickr.com/photos/h19/2306213399/in/set-72157594224557858

• Allow developers to apply their existing skills to the cloud

• Support for .NET, Ruby, PHP, Java

• Interoperability with any platform, tools or technology

Page 10: Understanding The Azure Platform   March 2010

Natural Platform Evolution

• Windows Server 2008

• Virtualisation• Windows

Services, such as IIS, logging, diagnostics, etc

• Visual Studio & .NET

Page 11: Understanding The Azure Platform   March 2010

Flexible Business Model

• No up front hardware purchase

• Pay as you go costing model

• Ideal in current economical climate

www.flickr.com/photos/cleebster/2508660124

Page 12: Understanding The Azure Platform   March 2010

Data Centers

Page 13: Understanding The Azure Platform   March 2010

Windows Azure Platform Availability

North Central

USA

South Central

USA

Northern Europe

Western Europe

Eastern Asia

Southeast Asia

Page 14: Understanding The Azure Platform   March 2010

Microsoft has run Online Services since 19941st MSFT datacentre built in 1989 Running Online Services 24x7x365 MSN launched beta in 1994/public in 1995Global service delivery to 59 markets/36 languages ∙ 30B Live ID authentications/month ∙ 2B Bing queries/month

∙ 10B MSN page views/month ∙ 240B Messenger messages/month

Global Infrastructure to Run Your Services World WideQuincy, WA: Approx 500K sq ft, hydro-poweredSan Antonio, TX: Approx 475K sq ft, recyclable waterChicago, IL: Approx 700K sq ft, water economizationDublin, Ireland: Approx 303+K sq ft, air economization

Delivering an Efficient & Sustainable Cloud

Page 15: Understanding The Azure Platform   March 2010

Chicago Datacentre – Scalable, Sustainable

One of world’s largest datacentres using containers, on-line on July 2009 Cost $500 million, 700k sq ft facility

(approx 16 football fields) 30 MegaWatts today, 60 MW for future

use ISO 27001:2005 Accreditation SAS 70 Type I and II Attestations

40 ft containers with 1800-2500 servers Density of 10 times amount of

compute in equivalent space in traditional datacentres

Optimizes efficiency, reduces wastes and carbon footprint

Delivers an average PUE of 1.22 Plug-and-play infrastructure = Rapid

Deployment

Page 16: Understanding The Azure Platform   March 2010

Dublin Datacentre First Mega Datacentre built outside the

US, on-line on July 2009 Cost $500 million, 303+sq ft facility

and growing EU Datacenter Best Practice Award

Winner Stand-alone Server Pods

Environmentally Sustainable Free Air-Cooling via Air-Side

Economization 50% less energy use vs. traditional

facilities 1 % water use vs. traditional

facilities 1.25 PUE

5.4 MegaWatts today, 22.2 MW for future use

ISO 27001:2005 Accreditation SAS 70 Type I and II Attestations

Page 17: Understanding The Azure Platform   March 2010

Windows Azure

Page 18: Understanding The Azure Platform   March 2010

Windows Azure

Applications

AppFabric

SQL Azure

Applications

OthersMobileDesktopServer

The Azure PlatformThe Big Picture

Page 19: Understanding The Azure Platform   March 2010

Fabric

Storage

Config

Compute

Application

AppFabric

Windows Azure

Applications

Applications

SQL Azure

OthersMobileDesktopServer

Page 20: Understanding The Azure Platform   March 2010

Azure Development

Page 21: Understanding The Azure Platform   March 2010

Windows Azure for Application Developers

Portal HostedService

Storage

SDK

Develop Deploy Run

Page 22: Understanding The Azure Platform   March 2010

Development Fabric and Storage

Local Machine

Windows Azure Simulation Environment

Development Fabric

Development Storage

Page 23: Understanding The Azure Platform   March 2010

Visual Studio 2010

Page 24: Understanding The Azure Platform   March 2010

Visual Studio 2010

Page 25: Understanding The Azure Platform   March 2010

Visual Studio 2010

Page 26: Understanding The Azure Platform   March 2010

Portal

Page 27: Understanding The Azure Platform   March 2010

Azure Building Blocks

Page 28: Understanding The Azure Platform   March 2010

Azure Compute Building Blocks

Web Role

IIS Host

Your Code

Worker Role

System Host

Your Code

Page 29: Understanding The Azure Platform   March 2010

Windows Azure Roles

RoleEntryPoint represents role, RoleEnvironment represents Azure environment OnStart for initialization Run for work GetHealthStatus to report application

health RoleEnvironmentChanging to respond to

number of instances in the service StatusCheck event to be removed from LB

rotation

Page 30: Understanding The Azure Platform   March 2010

Azure Storage Building Blocks

Storage

Account

Queue

Blobs &Drives

Tables

Page 31: Understanding The Azure Platform   March 2010

Common Azure Pattern

Web Role Worker Role

BlobStorage

QueueStorage

Page 32: Understanding The Azure Platform   March 2010

Windows Azure Blobs

Containers

Pictures

Photo1.png

Blobs

Photo3.png

Photo2.png

Provide simple interface for storing named files along with metadata for the file

Page 33: Understanding The Azure Platform   March 2010

Windows Azure Blob features REST based API

http://myaccount.blob.core.windows.net/mycontainer/myblob

PutBlob, GetBlob, DeleteBlob, CopyBlob, SnapshotBlob, LeaseBlob, etc

Block Blob for streaming + commit-based writes Sequence of blocks, size limit 200GB

per blob Page Blob for random read/write

Array of pages, size limit 1TB per blob

Page 34: Understanding The Azure Platform   March 2010

Windows Azure Drives Page Blob formatted as a NTFS single

volume Virtual Hard Drive (VHD) NTFS APIs providing durable file storage Drives can be up to 1TB, up to 16 can be

mounted Can upload VHD via Page Blob then

mount Ease migration of existing Windows

applications to Azure Durability and survival of data on

application failover or hardware failure

Page 35: Understanding The Azure Platform   March 2010

Windows Azure Tables

Tables

Movies

Genre = …Title = …

Entities

Actors

Genre = …Title = …

Name = …DOB = …

Structured storage via entities, containing sets of properties

Page 36: Understanding The Azure Platform   March 2010

Windows Azure Tables Provides Massively Scalable

Structured Storage Billions of entities (rows) and TBs of

data Familiar and Easy to use API

WCF Data Services, LINQ Each entity can have up to 255

properties PartitionKey & RowKey as key and index Timestamp for optimistic concurrency No fixed schema for all other properties Property is stored as a <name, typed

value> pair

Page 37: Understanding The Azure Platform   March 2010

Partitions and RowsPartitionKey(Category)

RowKey(Title)

Timestamp ReleaseDate

Action Fast & Furious … 2009

Action The Bourne Ultimatum

… 2007

… … … …

Animation

Open Season 2 … 2009

Animation

The Ant Bully … 2006

… … … …

Comedy Office Space … 1999

… … … …

SciFi X-Men Origins: Wolverine

… 2009

… … … …

War Defiance … 2008

Page 38: Understanding The Azure Platform   March 2010

Partitions and RowsPartitionKey(Category)

RowKey(Title)

Timestamp ReleaseDate

Action Fast & Furious … 2009

Action The Bourne Ultimatum

… 2007

… … … …

Animation

Open Season 2 … 2009

Animation

The Ant Bully … 2006

PartitionKey(Category)

RowKey(Title)

Timestamp

ReleaseDate

Comedy Office Space … 1999

… … … …

SciFi X-Men Origins: Wolverine

… 2009

… … … …

War Defiance … 2008

PartitionKey(Category)

RowKey(Title)

Timestamp ReleaseDate

Action Fast & Furious … 2009

Action The Bourne Ultimatum

… 2007

… … … …

Animation

Open Season 2 … 2009

Animation

The Ant Bully … 2006

Comedy Office Space … 1999

… … … …

SciFi X-Men Origins: Wolverine

… 2009

… … … …

War Defiance … 2008

Server BTable = Movies

[Comedy - MaxKey)

Server ATable = Movies

[MinKey - Comedy)

Server ATable = Movies

Page 39: Understanding The Azure Platform   March 2010

Queues

Queues

ThumbnailJobs

“Body1”

Messages

“Body3”

“Body2”

Provide reliable storage and delivery of messages

Page 40: Understanding The Azure Platform   March 2010

Azure Features

Page 41: Understanding The Azure Platform   March 2010

Service Management APIProvide Lights-Out Service Management

Manage services programmatically via REST-based API X509 client certificates for authentication Viewing, creating, deleting, swapping,

modifying configuration settings, etc on deployments

Page 42: Understanding The Azure Platform   March 2010

Windows Azure Diagnostics

42

Cloud is much harder than single server Dynamic environment, no local access

Azure Diagnostics built for monitoring & data collection Focus on what to collect and when Designed for Azure

Based on standard APIs Traces, logs, crash dumps, IIS logs,

perf counters, ETW, etc Upload to Azure storage as required

Logging & Diagnostics

Page 43: Understanding The Azure Platform   March 2010

Service Management CmdLets

PowerShell cmdlets wrapping Azure Service Management and Diagnostics API

Simple to script out deployments, upgrades, scaling• Deploy new services• Upgrade services• Manage storage

accounts• Transfer diagnostics

information• etc

Page 44: Understanding The Azure Platform   March 2010

Service Upgrade Models Rolling upgrade (aka “In-

place”) Roles are updated across update

domains one at a time Service remains available during

upgrade Real-time hot swap (aka “VIP

Swap”) Virtual IP swap between staging &

production Swap service endpoints of

old/new version Enables complex architectural

changes Planned downtime

Stop and replace service with new version

Page 45: Understanding The Azure Platform   March 2010

Azure Content Delivery Network

Better performance and user experience by caching Azure blobs at strategically placed locations 18 locations globally (United States, Europe,

Asia, Australia and South America) and growing

Windows Azure Blob Service

pic1.jpg

Content Delivery Network

Edge Location

Edge Location Edge Locationpic1.jpg

Page 46: Understanding The Azure Platform   March 2010

The Fabric

Page 47: Understanding The Azure Platform   March 2010

Fault Domains

Page 48: Understanding The Azure Platform   March 2010

SQL Azure

Page 49: Understanding The Azure Platform   March 2010

49

“SQL Server in the Cloud”“Database as a Service”

Page 50: Understanding The Azure Platform   March 2010

SQL Azure vs SQL Server

Similarities Scalable, reliable, robust, SQL Server

technology foundation Same SQL Server core database service Same TDS access

Differences Supports subset of SQL Server 2008 T-SQL Limited to 1Gb or 10Gb database Different pricing model No Reporting Services, Analysis Services, etc

Page 51: Understanding The Azure Platform   March 2010

T-SQLTransact-SQL Features Supported Transact-SQL Features Unsupported

Constants Constraints Cursors Index management and

rebuilding indexes Local temporary tables Reserved keywords Stored procedures Statistics management Transactions Triggers Tables, joins, and table

variables Transact-SQL language

elements such as

o Create/drop databases

o Create/alter/drop tables

o Create/alter/drop users and logins

o and so on. User-defined functions Views, including

sys.synonyms view

Common Language Runtime (CLR) Database file placement Database mirroring Distributed queries Distributed transactions Filegroup management Global temporary tables Spatial data and indexes SQL Server configuration options SQL Server Service Broker System tables Trace Flags

Page 52: Understanding The Azure Platform   March 2010

SQL Azure related projects

Codename "Houston" Web management tooling SQL Server Management Studio 2008 R2 works

today Codename "Dallas“

“Information as a service” Codename "Sydney“

Punch holes through firewalls to integrate cloud and on-premise databases

SQL Azure Data Sync For Sync Framework

Page 53: Understanding The Azure Platform   March 2010

Codename “Dallas”

Page 54: Understanding The Azure Platform   March 2010

Information as a Service

54

Data or functionality that is “of value to many” – enabling applications, reports, BI analysis, etc… Examples include GIS/Spatial, traffic, movie show

times, crime, real-estate sales, financial data, navigation, census data, reviews, etc…

Various Classifications: Commercial: clean, supported, and regularly updated

from ISVs and Content Providers Trusted Public Domain: clean, unsupported data from

academia and governments (Census, FDA, …) Crowd Sourced: unreliable data in the public domain

from anyone and everyone

Page 55: Understanding The Azure Platform   March 2010

Information in the Cloud

Codename “Dallas”

Data ProviderData Consumer

Atom 1.0, RAW

• Find• Subscribe• Interact

Page 56: Understanding The Azure Platform   March 2010

Accessing Data from “Dallas”

Page 57: Understanding The Azure Platform   March 2010

AppFabric

Page 58: Understanding The Azure Platform   March 2010

“Infrastructure to help build and manage applications more easily”

Windows Server AppFabric Caching capabilities (“Velocity”) Workflow + service hosting

(“Dublin”) Windows Azure AppFabric (“.NET

Services”) Service Bus Access Control

Page 59: Understanding The Azure Platform   March 2010

Service Bus

59

Exposing internal applications on the Internet isn’t easy

Network address translation (NAT) and firewalls get in the way

The Service Bus: Provides a cloud-based

intermediary between clients and internal applications

Provides a service registry that clients can use to find the services they need

Page 60: Understanding The Azure Platform   March 2010

Service Bus

60

Page 61: Understanding The Azure Platform   March 2010

Access Control

61

Different organizations identify users through many different techniques

Applications can be faced with a confusing mess of security related code

The Access Control Service: Implements a security token service

(STS) in the cloud It accepts one token and issues another An administrator can define rules for

how this claims transformation is done

Page 62: Understanding The Azure Platform   March 2010

Access Control

62

Page 63: Understanding The Azure Platform   March 2010

Commercial Information

Page 64: Understanding The Azure Platform   March 2010

Azure PricingMoney & Architecture are rarely divorced

Pricing for launch reflect our costs Biggest cost is Windows Azure

compute c.f. Supermarket checkout model

Deals and bundles should follow

Page 65: Understanding The Azure Platform   March 2010

Windows Azure Platform Consumption Prices

Elastic, scalable, secure, & highly available automated service platform

Pay as you go and grow for only what you use when you use it

Compute

$0.12/hour

+ Variable Instance Sizes

Per service hour

Highly available, scalable, and self managed distributed database service

Web EditionPer database/month

$9.99/month(up to 1 GB DB/month)

Business Edition

$99.99/month(up to 10 GB DB/month)

Per database/month

Storage Per GB stored &

transactions$0.15 GB/month

$0.01/10K transactions

Prices shown in USD only

Windows Azure platform AppFabric Service Bus & Access ControlScalable, automated, highly available services for secure connectivity

Access Control

$0.015/10k Message Operations

Per Message Operation $0.015/10k Message

Operations

Per Message Operation

Service Bus

International prices are available

Page 66: Understanding The Azure Platform   March 2010

Windows Azure Instance Sizes

Unit of Compute Defined

Small

$0.12

Per service hour

Medium

$0.24

Per service hour

Large

$0.48

Per service hour

X Large

$0.96

Per service hour

Variable instance sizes to handle complex workloads of any size

 

Small

1 x 1.6Ghz (moderate IO)

Medium

2 x 1.6Ghz (high IO)

Large

4 x 1.6Ghz (high IO)

X-Large

8 x 1.6Ghz(high IO)

Equivalent compute capacity of a 1.6Ghz processor (on 64bit platform)

1.75 GB memory 3.5 GB memory 7.0 GB memory 14 GB memory

250 GB storage(instance storage)

500 GB storage(instance storage)

1000 GB storage(instance storage)

2000 GB (instance storage)

Page 67: Understanding The Azure Platform   March 2010

North America Region

S. Central - US Sub-region

N. Central – US Sub-region

Europe Region

W. Europe Sub-region

S.E. AsiaSub-region

Asia Pacific Region

E. AsiaSub-region

$0.10 GB Ingress

$0.15 GB Egress

$0.10 GB Ingress

$0.15 GB Egress

$0.30 GB Ingress

$0.45 GB Egress

N. Europe Sub-region

Windows Azure Platform Data Transfer Priced per GB transferred/month (prices shown in USD)

No Charge For Off Peak Ingress Promotion (ends 6/30/10)

On-board to Windows Azure platform at no charge Off peak times defined as: 10pm-6am Mon-Fri & from 10pm-Fri to 6am-

Mon for weekends in each designated regional time zones below

North America PST = UTC-8

Europe WET = UTC

Asia PacificSST = UTC+8

Page 68: Understanding The Azure Platform   March 2010

Azure Resources

Page 69: Understanding The Azure Platform   March 2010

www.Azure.com

Page 70: Understanding The Azure Platform   March 2010

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