Your SlideShare is downloading. ×
0
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
2. Windows Azure
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

2. Windows Azure

5,159

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
5,159
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Compute TODAY in the PDC CTP means MANAGED CODE ONLY, running in MEDIUM Trust.In the future as we have already indicated at PDC, there will be support for unmanaged code.There are 2 roles in playA web role – which is just a web site, asp.net, wcf, images, css etc.A worker role – which is similar to a windows service, it runs in the background and can be used to decouple processing. There is a diagram later that shows the architecture, so don’t worry about how it fits together just yet.Key to point out the inbound protocols are HTTP & HTTPS – outbound are any TCP Socket, (but not UDP).All servers are stateless, and all access if through load balancers.
  • This should give a short introduction to storage. Key points are its durable (meaning once you write something we write it to disk), scalable (you have multiple servers with your data), available (the same as compute, we make sure the storage service is always running – there are 3 instances of your data at all times).Quickly work through the different types of storage:Blobs – similar to the file system, use it to store content that changes, uploads, unstructured data, images, movies etc.Tables – Semi-structured, provides a partitioned entity store (more on partitions etc. in the Building Azure Services Talk) – allows you to have tables containing billions of rows, partitioned across multiple servers.Queues – Simple queue for decoupling Computer Web and Worker Roles.All access is through REST interface. You can actually access the storage from outside of the data center (you don’t need compute) and you can access storage via anything that can make a HTTP request.It also means table storage can be accesses via ADO.NET Data Services.
  • Remind them the cloud is all the hardware across the board.Point out the automated service management,
  • Developer SDK is a Cloud in a box, allowing you to develop and debug locally without requiring a connection to the cloud. You can do this without Visual Studio as there are command line tools for executing the “cloud in a box” and publishing to the cloud.There is also a separate download for the Visual Studio 2008 tools, which provide the VS debugging and templates.Requirements are any version of Visual Studio (including Web Developer Express), Vista SP1. (Note: the Azure sdk will not yet work with the Win 7 beta – watch out for a fix in the future or future builds of Windows 7)
  • There is a small API for the cloud, that allows you to do some simple things, such as logging, reading from a service configuration file, and local file system access. The API is small and is easy to learn.
  • To allow us to deploy and operate your service in the cloud, we need to know the structure of your service. You describe your service and operating parameters through the use of a service model. This service model tells us which roles you have, any service configuration and can also describe the number of instances you need for each role within your service. Whilst this model is simple today, the model will be extended to allow you to describe a much richer operational model – e.g. allowing scale-out and scale-down based upon consumption and performance.This file is also where you would store configuration that may change once deployed. Since all files within a role are read-only, you cannot change either an app.config or web.config file once deployed, the only configuration you can change is in the service model.
  • If you have already presented the overview session, you may wish to skip this.For the demo:Create a new cloud Web project named Hello World.Change the title on the default.aspx page to say “Hello cloud”Point out the different parts of the project solution, including the 2 projects and service configuration files.Hit F5, to execute the project, then right click the fabric icon from the icon tray to show the developer UI.Show the nodes on the UI for the service. Close the Web Browser (to/or stop debugging)
  • In this next section, we’ll dig a little deeper on storage.Recall there are 3 types of storage.Recall the design point is for the cloud, there are 3 replicas of data, and we implement guaranteed consistency. In the future there will be some transaction support and this is why we use guaranteed consistency.Access is via a storage account – you can have multiple storage accounts per live id.Although the APU is REST, there is a sample .net storage client in the SDK that you can compile and use within your project. This makes working with storage much easier.
  • Blobs在计算机中,BLOB是指二进制长对象。BLOB是一个大文件,典型的BLOB是一张图片或一个声音文件,由于它们的尺寸,必须使用特殊的方式来处理(例如:上传、下载或者存放到一个数据库)。根据Eric Raymond的说法,处理BLOB的主要思想就是让文件处理器(如数据库管理器)不去理会文件是什么,而是关心如何去处理它。但也有专家强调,这种处理大数据对象的方法是把双刃剑,它有可能引发一些问题。在数据库中存放体积较大的多媒体对象就是应用程序处理BLOB的典型例子。Blobs are stored in containers. There are 0 or more blobs per container and 0 or more containers per account. (since you can have 0 containers, but then you would not have any blobs either)Typically url in the cloud is http://accountname.blob.core.windows.net/container/blobpathBlob paths can contain the / character, so you can give the illusion of multiple folders, but there is only 1 level of containers.Blob capacity at CTP is 50gb.There is an 8k dictionary that can be associated with blobs for metadata.Blobs can be private or public:Private requires a key to read and writePublic requires a key to write, but NO KEY to read.Use blobs where you would use the file system in the past.
  • Remind folks of the Azure Services Platform.It’s worth pointing out the naming again here. E.g. explain that Azure Services Platform is the name of the platform that comprises Live Services, .net Services, SQL Services & Windows Azure. Windows Azure is a key component of the Azure Services PlatformAzure != Windows Azure
  • Queues are simple:Messages are placed in queues. Max size is 8k (and it’s a string)Message can be read from the queue, at which point it is hidden.Once whatever read the message from the queue is finished processing the message, it should then remove the message from the queue. If not the message is returned to the queue after a specific user defined time limit. This can be used to handle code failures etc.
  • Tables are simply collections of Entities.Entites must have a PartitionKey and RowKey – can also contain up to 256 other properties.Entities within a table need not be the same shape! E.g.:Entity 1: PartitionKey, RowKey, firstnameEntity 2: PartitionKey, RowKey, firstname, lastnameEntity 3: PartitionKey, Rowkey, orderId, orderData, zipCodePartitions are used to spread data across multiple servers. This happens automatically based on the partition key you provide. Table “heat” is also monitored and data may be moved to different storage endpoints based upon usage.Queries should be targeted at a partition, since there are no indexes to speed up performance. Indexes may be added at a later date.Its important to convey that whilst you could copy tables in from a local data source (e.g. sql) it would not perform well in the cloud, data access needs to be re-thought at this level. Those wanting a more traditional SQL like experience should investigate SDS.
  • Once you have built and tested your service, you will want to deploy it.The key to deployment and operations is the service model.To deploy – first you build your service, this takes the project output + Content (images, css etc.) and makes a single file. It also creates and instance of your service metadata.Next you would visit the web portal and upload the 2 solution files – from there the “cloud” takes care of deploying it onto the correct number of machines and getting it to run.To increase and decrease capacity today, you would edit the configuration from the web portal.For more than 1 instance, you should be deployed across fault domains, meaning separate hardware racks.In the portal you have a production and staging area, with different urls. You can upload the next version of your project into staging, then flip the switch – which essentially changes the load balancers to point to the new version.
  • So how do we do the automated deployment & manage your service.1st – remember the service metadata tells us exactly what we need to deploy and how many instances etc.There is no OS footprint, so your service can be copied around the data center without any configuration requirements.The OS itself is on a VHD, so it was copied to the hardware.The hardware itself was also booted from VHD, which was also copied around.Therefore, to put a new version of your software, or the OS that hosts it, all we need to do is copy it to a new machine and spin it up. It also means we can patch and test the OS offline. No live patching!!!
  • In this demo you want to deploy the hello world you created early to the portal.
  • Now your service is deployed, how do YOU monitor it?1st – you cannot attach a debugger to the cloud – that would be impractical (which one of the 700 instances would you like to attach too?) and not a good idea from a security viewpoint.To get diagnostic information – you must write it to the Windows Azure logs. These logs can be retrieved from the portal at any time, copied to your local machine for analysis.You will expect detailed consumption reporting, and if anything goes wrong you will also receive a Windows Live Alert, informing you your service failed/crashed.
  • Some key things to rememberDesign points are scalability and availability – think it terms of lots of small servers rather than a single BIG server.Table storage is semi-structured – ITS NOT A RELATIONAL DATABASE – IT NEVER WILL BE. THAT IS SDS.Everything is stateless (you can maintain state in table or blob storage if YOU want to)Decouple everything using queues, and write code to be repeatable without breaking anything – in other words design for failure!Instrument and log your application yourself.Work on the idea that once you are on – stay on.How will you patch/update your service once it is switched on?
  • Highlight the purpose of this talk is the Windows Azure piece.
  • In this demo you want to deploy the hello world you created early to the portal.
  • Key points here are to start to message that Windows Azure is designed for the cloud. Scalability and Availability are the key design points here – remind people throughout the talk that its designed to be scalable and available. Last point is important. Windows Azure only runs in Microsoft data centers. It’s not a shrink wrapped version of windows that they can buy and run in data centers themselves. There are no plans to do this.
  • You can draw the comparison between the desktop/server OS and the cloud OS. The desktop abstracts away things like printers, display drivers, memory etc. So you only have to worry about building your desktop application. The Cloud OS does this for the cloud, but instead of printers, display drivers etc. it does it across multiple servers, networking compoents, provides a “cloud file system” for storage, a programming environment etc.The last 2 points:1. Interoperability – the storage etc uses REST based protocols.2. Designed for Utility Computing – Rather than charging a per-seat license etc. you will be likely charged based on consumption. The details of this are not know, so don’t speculate, other than we will be competitive.
  • Windows Azure is not about letting you setup and run an entire OS with your application.Instead it is about running your service, using commodity servers that are managed by Microsoft. Microsoft take care of deploying your service, patching the OS, keeping your service running, configuring hardware, infrastructure etc. All of this is automated.All you need to worry about is writing the service.
  • Here are some of the features we’ll walk through in the next few minutes.
  • This is the exploding cloud diagram
  • Transcript

    • 1. Windows Azure 杨刚 Technical Manager 万锐信息技术服务有限公司 Email: Gyang@Winarray.com MSN: YG2008@GMail.com Azure™ Services Platform 1
    • 2. Microsoft Cloud Services 2
    • 3. Microsoft Cloud Services 3
    • 4. 什么是 Windows Azure Windows Azure 特点 计算 存储 开发SDK 自动服务管理 4
    • 5. Windows Azure? 在云端的操作系统 降低 互联网应用可扩展的复杂性 以可用性和可扩展性作为设计目标 只运行在微软的数据中心 5
    • 6. Windows Azure? 跨多台服务器的抽象硬件 分布式伸缩, 高可用的存储 部署、监视和维护 自动化服务管理, 负载均衡, DNS 编程环境 互操作性 仅为有效计算设计 6
    • 7. Windows Azure? 处理你在云端的服务的操作系统 部署 可用性 补丁 硬件配置 你需要关心的是开发你的服务! 7
    • 8. Windows Azure? 自动服务管理 计算 存储 开发者体验 8
    • 9. Windows Azure?? Compute Storage Developer SDK 9
    • 10. Windows Azure?? Compute .NET 3.5 sp1 on IIS7 • Server 2008 – 64bit • Storage Medium Trust* • Web Role • • Web Sites (ASP.NET) • Web Services (WCF) • Worker Role • Stateless Servers Developer Tools • Http(s) 10
    • 11. Windows Azure?? Storage Durable, scalable, available • Blobs • Tables • Compute Queues • REST interfaces • – Can be used without compute Developer Tools 11
    • 12. Windows Azure?? Compute Storage All of the hardware Hardware Load Balancers Servers Networks DNS Monitoring Automated service management Developer Tools 12
    • 13. Windows Azure?? Developer SDK • Windows Azure SDK Local compute environment – Compute Storage Local Mock Storage – Command line tools – Small Managed API – • Logging, working storage • Microsoft Visual Studio 2008 add-in 13
    • 14. Windows Azure API RoleManager Logging WriteToLog Configuration GetConfigurationSetting LocalResource GetLocalResource 14
    • 15. 描述你的服务 <?xml version=quot;1.0quot; encoding=quot;utf-8quot;?> <ServiceDefinition name=quot;CloudService1quot; xmlns=quot;http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinitionquot;> <WebRole name=quot;WebRolequot;> <ConfigurationSettings> <Setting name=quot;AccountNamequot;/> </ConfigurationSettings> <LocalStorage name=quot;scratchquot; sizeInMB=quot;50quot;/> <InputEndpoints> <!-- Must use port 80 for http and port 443 for https when running in the cloud --> <InputEndpoint name=quot;HttpInquot; protocol=quot;httpquot; port=quot;80quot; /> </InputEndpoints> </WebRole> <WorkerRole name=quot;WorkerRolequot;> <ConfigurationSettings> <Setting name=quot;AccountNamequot;/> <Setting name=quot;TableStorageEndpointquot;/> </ConfigurationSettings> </WorkerRole> </ServiceDefinition> 15
    • 16. Worker WebSite Site Worker WebSite WebASMX, WCF) (ASPX, Service LB (ASPX, ASMX, WCF) Service (ASPX, WCF) Internet Your Service Queue LB Blobs Tables Storage Windows Azure Datacenter 16
    • 17. Hello Azure 17
    • 18. Blobs, Tables, Queues 为云而设计 3 份复制 确保一致性 通过REST API直接访问Internet 不参与计算 通过单独的存储帐户访问 SDK提供简单的存储客户端 18
    • 19. Blobs Blobs 存储在容器中 每个帐户1个或更多的容器 Scoping is at container level …/Container/blobpath Blobs Capacity 50GB Metadata, accessed independently name/value pairs (8kb total) 私有或公开 文件系统使用Blobs 19
    • 20. Blob 20
    • 21. Mount CouldDrive 21
    • 22. Queues 简单异步发动队列 创建和删除队列 消息: Retrieved at least once 最大长度8kb 选项: Enqueue Dequeue RemoveMessage 22
    • 23. Tables 实体和属性(行&列) Tables scoped by account 设计为 billions+ 级别 使用分区实现可扩展 Partition key & row key 高效查询 不限制分区数量 使用 ADO.NET Data Services 23
    • 24. GuestBook 24
    • 25. Create service package 创建服务包 Binaries + Content + Service Metadata 通过网站上部署 通过网站添加/删除 容量 跨域部署 不需要停机进行升级 25
    • 26. You tell us what, we take care of how What 服务元数据 How 元数据描述服务 没有OS 足迹 服务被拷贝到实体 实体被拷贝到物理硬件 物理硬件通过VHD 启动 26
    • 27. Deploying Services 27
    • 28. 不能把Debugger attached到Cloud 上 事件日志 通过Web Portal获得日志 提供详细报表 通过Windows Live Alerts 今天提醒 28
    • 29. 可用性和可扩展式设计的关键点 存储不是关系型数据库 无状态 Stateless front ends, store state in storage 使用队列进行解耦 Instrument your application Once you are on - stay on 思考补丁& 升级 29
    • 30. Personal WebSite 30
    • 31. Windows Azure 是云操作系统 构建服务不需要考虑运营的忧虑 为可扩展和可用性而设计 自动服务管理 Compute Storage Developer SDK Utility computing - Pay-as-you-go pricing 31
    • 32. http://eerp.cloudapp.net/ 32
    • 33. 33
    • 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. 34

    ×