2. windows azure

34
1 Azure Services Platf Windows Azure 杨杨 Technical Manager 杨杨杨杨杨杨杨杨杨杨杨杨 Email: [email protected] MSN: [email protected]

Upload: garyyoung

Post on 06-Dec-2014

4.801 views

Category:

Documents


12 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 2. Windows Azure

1

Azure™ Services Platform

Windows Azure

杨刚Technical Manager万锐信息技术服务有限公司Email: [email protected]: [email protected]

Page 2: 2. Windows Azure

2

Microsoft Cloud Services

Azure™ Services Platform

Page 3: 2. Windows Azure

3

Microsoft Cloud Services

Azure™ Services Platform

Page 4: 2. Windows Azure

4

议题什么是 Windows AzureWindows Azure 特点

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

Page 5: 2. Windows Azure

5

什么是 Windows Azure?

在云端的操作系统

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

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

只运行在微软的数据中心

Page 6: 2. Windows Azure

6

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

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

Page 7: 2. Windows Azure

7

什么是 Windows Azure?

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

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

Page 8: 2. Windows Azure

8

什么是 Windows Azure?特性

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

Page 9: 2. Windows Azure

9

什么是 Windows Azure??

Compute Storage

DeveloperSDK

Page 10: 2. Windows Azure

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

Page 11: 2. Windows Azure

11

DeveloperTools

什么是 Windows Azure??

Compute

Storage• Durable, scalable,

available• Blobs• Tables• Queues• REST interfaces

– Can be used without compute

Page 12: 2. Windows Azure

12

All of the hardwareHardware Load BalancersServersNetworksDNSMonitoring

Automated service management

什么是 Windows Azure??

Compute Storage

DeveloperTools

Page 13: 2. Windows Azure

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

Page 14: 2. Windows Azure

14

Windows Azure API

RoleManagerLogging

WriteToLogConfiguration

GetConfigurationSettingLocalResource

GetLocalResource

Page 15: 2. Windows Azure

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>

Page 16: 2. Windows Azure

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

Page 17: 2. Windows Azure

17

Hello Azure

demo

Page 18: 2. Windows Azure

18

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

3 份复制确保一致性

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

Page 19: 2. Windows Azure

19

Blobs

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

Scoping is at container level…/Container/blobpath

BlobsCapacity 50GBMetadata, accessed independently

name/value pairs (8kb total)

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

Page 20: 2. Windows Azure

20

Blob

demo

Page 21: 2. Windows Azure

21

Mount CouldDrive

demo

Page 22: 2. Windows Azure

22

Queues

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

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

EnqueueDequeueRemoveMessage

Page 23: 2. Windows Azure

23

Tables

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

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

使用 ADO.NET Data Services

Page 24: 2. Windows Azure

24

GuestBook

demo

Page 25: 2. Windows Azure

25

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

Page 26: 2. Windows Azure

26

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

服务元数据How

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

Page 27: 2. Windows Azure

27

Deploying Services

demo

Page 28: 2. Windows Azure

28

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

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

Page 29: 2. Windows Azure

29

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

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

Page 30: 2. Windows Azure

30

Personal WebSite

demo

Page 31: 2. Windows Azure

31

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

Page 32: 2. Windows Azure

32

http://eerp.cloudapp.net/

Page 33: 2. Windows Azure

33

Q & A

Page 34: 2. Windows Azure

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.