2. Windows Azure

Preview:

DESCRIPTION

 

Citation preview

1

Azure™ Services Platform

Windows Azure

杨刚Technical Manager万锐信息技术服务有限公司Email: Gyang@Winarray.comMSN: YG2008@GMail.com

2

Microsoft Cloud Services

Azure™ Services Platform

3

Microsoft Cloud Services

Azure™ Services Platform

4

议题什么是 Windows AzureWindows Azure 特点

计算存储开发 SDK自动服务管理

5

什么是 Windows Azure?

在云端的操作系统

降低 互联网应用可扩展的复杂性

以可用性和可扩展性作为设计目标

只运行在微软的数据中心

6

什么是 Windows Azure?在云端的操作系统

跨多台服务器的抽象硬件分布式伸缩 , 高可用的存储部署、监视和维护自动化服务管理 , 负载均衡 , DNS编程环境互操作性仅为有效计算设计

7

什么是 Windows Azure?

处理你在云端的服务的操作系统部署可用性补丁硬件配置

你需要关心的是开发你的服务!

8

什么是 Windows Azure?特性

自动服务管理计算存储开发者体验

9

什么是 Windows Azure??

Compute Storage

DeveloperSDK

10

DeveloperTools

什么是 Windows Azure??

Compute• .NET 3.5 sp1 on

IIS7• Server 2008 –

64bit• Medium Trust*• Web Role

• Web Sites (ASP.NET)

• Web Services (WCF)

• Worker Role• Stateless Servers• Http(s)

Storage

11

DeveloperTools

什么是 Windows Azure??

Compute

Storage• Durable, scalable,

available• Blobs• Tables• Queues• REST interfaces

– Can be used without compute

12

All of the hardwareHardware Load BalancersServersNetworksDNSMonitoring

Automated service management

什么是 Windows Azure??

Compute Storage

DeveloperTools

13

什么是 Windows Azure??

Compute Storage

Developer SDK

• Windows Azure SDK– Local compute environment– Local Mock Storage– Command line tools– Small Managed API

• Logging, working storage

• Microsoft Visual Studio 2008 add-in

14

Windows Azure API

RoleManagerLogging

WriteToLogConfiguration

GetConfigurationSettingLocalResource

GetLocalResource

15

服务模型描述你的服务

<?xml version="1.0" encoding="utf-8"?><ServiceDefinition name="CloudService1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> <WebRole name="WebRole"> <ConfigurationSettings> <Setting name="AccountName"/> </ConfigurationSettings> <LocalStorage name="scratch" sizeInMB="50"/> <InputEndpoints> <!-- Must use port 80 for http and port 443 for https when running in the cloud --> <InputEndpoint name="HttpIn" protocol="http" port="80" /> </InputEndpoints> </WebRole> <WorkerRole name="WorkerRole"> <ConfigurationSettings> <Setting name="AccountName"/> <Setting name="TableStorageEndpoint"/> </ConfigurationSettings> </WorkerRole></ServiceDefinition>

16Windows Azure Datacenter

Your Service

服务架构

LB

Internet

Web Site(ASPX, ASMX, WCF)Web Site

(ASPX, ASMX, WCF)Web Site(ASPX, WCF)

Worker Service

Worker Service

LB

StorageTables Blobs

Queue

17

Hello Azure

demo

18

存储 Blobs, Tables, Queues为云而设计

3 份复制确保一致性

通过 REST API 直接访问 Internet不参与计算通过单独的存储帐户访问SDK 提供简单的存储客户端

19

Blobs

Blobs 存储在容器中每个帐户 1 个或更多的容器

Scoping is at container level…/Container/blobpath

BlobsCapacity 50GBMetadata, accessed independently

name/value pairs (8kb total)

私有或公开文件系统使用 Blobs

20

Blob

demo

21

Mount CouldDrive

demo

22

Queues

简单异步发动队列创建和删除队列

消息 :Retrieved at least once最大长度 8kb选项 :

EnqueueDequeueRemoveMessage

23

Tables

实体和属性(行 & 列)Tables scoped by account 设计为 billions+ 级别使用分区实现可扩展

Partition key & row key高效查询不限制分区数量

使用 ADO.NET Data Services

24

GuestBook

demo

25

服务生命周期Create service package 创建服务包Binaries + Content + Service Metadata通过网站上部署通过网站添加 / 删除 容量跨域部署不需要停机进行升级

26

自动服务管理You tell us what, we take care of how What

服务元数据How

元数据描述服务没有 OS 足迹服务被拷贝到实体实体被拷贝到物理硬件物理硬件通过 VHD 启动

27

Deploying Services

demo

28

服务监控不能把 Debugger attached 到 Cloud 上事件日志

通过 Web Portal 获得日志提供详细报表通过 Windows Live Alerts 今天提醒

29

设计考虑可用性和可扩展式设计的关键点存储不是关系型数据库无状态

Stateless front ends, store state in storage使用队列进行解耦Instrument your applicationOnce you are on - stay on思考补丁 & 升级

30

Personal WebSite

demo

31

总结Windows Azure 是云操作系统构建服务不需要考虑运营的忧虑为可扩展和可用性而设计自动服务管理ComputeStorageDeveloper SDKUtility computing - Pay-as-you-go pricing

32

http://eerp.cloudapp.net/

33

Q & A

34

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