Web Role 的每台虚机运行有 IIS ,用于处理 Web 请求 Worker Role 用于运行后台进程 Cloud Service 是什么? 支持多层架构的应用容器 由多个 Windows 虚拟机集群构成 集群有两种类型: Web 和 Worker Cloud Service 做什么 进行应用的自动化部署 维护所有虚机的操作系统 / 补丁 /IIS 进行每个集群的故障排除和负载 均衡 进行集中监控、日志收集 普通应用如何发布为 Cloud Service 应用中去除状态 用 VS/Eclipse 进行打包 部署运维
单一虚机不可靠,不建议存储状态信息及数据 每个 Role 建议至少 2 个虚机实例 Role 99.95% 可用性
互联网用户 ❸ 访问 Azure Cloud service Azure Storage 服务 ❷ 上传至 Azure ❻ 性能监控 / 故障 排除 / 配置优化 / 容 量管理 运维人员 ❹ 在 Table 中生成记录, 将源图片存在 Blob 中, 生成一个消息通知 Worker ❺ 读取消息,将 Blob 更新为小图 片,更新 Table
Demo
VM SizeCPU CoresCPU SpeedMemoryBandwidth # Data Disks Local Storage Cost (USD) Extra SmallShared1.0 GHz768 MB5 (Mbps)120GB0.02 Small11.6 GHz1.75 GB100 (Mbps)2225GB0.12 Medium21.6 GHz3.5 GB200 (Mbps)4490GB0.24 Large41.6 GHz7 GB400 (Mbps)81,000GB0.48 Extra Large81.6 GHz14 GB800 (Mbps)162,040GB0.96
More small instances == more redundancy Some scenarios will benefit from more cores Where moving data >$ parallel overhead E.g. Video processing, Stateful services (DBMS) Don’t just throw big VMs at every problem Scale out architectures have natural parallelism Test various configurations under load
Input Endpoint : 80 ,对外 8080 Internal Endpoint : 80 ,允许 Role1 访问 Instance Input Endpoint : 1000 ,对外 Cloud service 边界防火墙及负载均衡
Azure Storage
Demo
常用资源
© 2011 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.