Windows Azure Cloud Service (6) Reboot and Reimage

本文涉及的产品
函数计算FC,每月15万CU 3个月
简介:

  Windows Azure Platform 系列文章目录

  

  Windows Azure PaaS不是持久化的。

  (为了更好的解释这章内容,一开始,我把Windows Azure Portal的Language改成English)

  我们在使用Windows Azure Portal的时候,会发现对于Multi-instance(多实例)站点,会有Reboot和Reimage这两个按钮

这2个按钮在中文简体的Azure Portal中的翻译是

那重新启动(Reboot)是什么意思?

重新启动(Reboot)就是把Azure计算节点(Azure VM)进行重新启动。在重启期间,该计算节点不会提供正常的计算服务。

  • 对于单个计算节点(1-instance)的Azure托管服务,会造成Azure托管服务短暂的不正常运行。
  • 对于多个计算节点(multi-instance)的Azure托管服务,Fabric Controller (FC) 是自动把请求发送到其他正常的计算节点(Azure VM)。

比如我发布了一个Azure托管服务,这个服务有三个计算节点。如果我重新启动(Reboot)其中2个计算节点,如下图:

如果这时候有用户需要请求这个Azure 服务,Fabric Controller (FC)会把这些请求发送正常运行的第一个节点(IN_0)之上。这也是为什么Windows Azure建议用户使用至少两个实例(2-instance)来提高Windows Azure的可靠性。

 

其实我们也可以通过远程桌面连接到Azure VM(具体步骤,请参考Windows 
Azure Platform (十八)用Visual Studio将应用程序部署到Windows Azure平台
),然后像重启电脑那样重启Azure VM。如下图:

使用通过Azure Portal重启(Reboot)远程桌面连接重启Windows Azure VM是相类似的。区别是:

  • 使用Azure Portal重启,FC会充分认识到具体是哪个VM正在被重启,并且在Portal上显示出来。
  • 使用远程桌面连接重启,FC不知道计算节点(VM)发生了什么事情。FC只能被动地将外部请求发送到那些正常运行的计算节点之上。

 

最后我们聊聊重置镜像(Reimage):

  • 对Web Role和Worker Role使用Reimage,首先会让Azure托管服务离线(Offline),然后重新安装Azure 操作系统(Azure Guest Operation),最后启动服务。
  • (Web and Worker Role Reimage – In this type of role, Azure brings the role offline first and applies the fresh reinstallation of the Azure Guest Operating System and make the role online again)

我们还是通过远程桌面连接到Windows Azure VM (IN_0)上。

  • 我在F盘创建三个文件夹

 

然后我点击Reimage,重启镜像。等待重启镜像操作完成,然后我再通过远程桌面连接到Azure VM上

会发现之前我存在Azure VM本地磁盘上(Local Storage)上的内容,经过Reimage之后,都丢失了。

所以放在Azure VM本地磁盘上的数据都是非持久性的!如果我们想保存数据,必须使用Azure Storage (BLOB,Drive, Table和Queue)来实现。

 


本文转自Lei Zhang的博客博客园博客,原文链接:http://www.cnblogs.com/threestone/archive/2012/05/02/2479266.html,如需转载请自行联系原作者
相关实践学习
【AI破次元壁合照】少年白马醉春风,函数计算一键部署AI绘画平台
本次实验基于阿里云函数计算产品能力开发AI绘画平台,可让您实现“破次元壁”与角色合照,为角色换背景效果,用AI绘图技术绘出属于自己的少年江湖。
从 0 入门函数计算
在函数计算的架构中,开发者只需要编写业务代码,并监控业务运行情况就可以了。这将开发者从繁重的运维工作中解放出来,将精力投入到更有意义的开发任务上。
目录
相关文章
|
10月前
|
安全 Windows
【Azure Cloud Service】在Windows系统中抓取网络包 ( 不需要另外安全抓包工具)
通常,在生产环境中,为了保证系统环境的安全和纯粹,是不建议安装其它软件或排查工具(如果可以安装,也是需要走审批流程)。 本文将介绍一种,不用安装Wireshark / tcpdump 等工具,使用Windows系统自带的 netsh trace 命令来获取网络包的步骤
205 32
|
10月前
|
C# Windows
【Azure App Service】在App Service for Windows上验证能占用的内存最大值
根据以上测验,当使用App Service内存没有达到预期的值,且应用异常日志出现OutOfMemory时,就需要检查Platform的设置是否位64bit。
160 11
|
Java 应用服务中间件 开发工具
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
133 2
|
Java 应用服务中间件 Windows
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
113 2
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
209 1
|
网络安全 API 数据安全/隐私保护
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
114 0
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
109 0
|
存储 Linux Windows
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
112 0