昨天把现在的产品迁移到了WINDOWS AZURE,准备试用一段时间看看效果
最近azure在国内的访问速度提高不少,对网速要求不高的使用没什么问题了.
迁移过程出现了一些问题
1.时间不对,WINDOWS AZURE是UTC,而中国是UTC+8,所以需要调整时间
方法是在WEBROLE的启动任务里增加
tzutil /s "China Standard Time"
启动任务的增加方法可以参考:
http://www.cnblogs.com/threestone/archive/2012/03/13/2394484.html
2.额外的服务安装配置
云主机不能像传统主机那样直接安装,原因很简单,云厂商可能因为各种原因迁移你的云主机内容到其他云主机里去,而迁移过程中是不会保留你发布内容以外的任何内容.
简单来说,云主机是可以多实例的,你存在任何一台主机里的内容其他主机是不知道的.包括文件,本地注册表都是的.
所以需要把需要的服务程序包括到WEBROLE(我是用的WEBROLE)里,设置为复制到输出目录.
然后再设置启动任务里安装这个服务
3.小型主机使用WHILE死循环注意
小型主机是单CPU的,如果你程序中有
while(true)
{
....
}
而里面没有类似SLEEP这样的语句,那么你的云主机会cpu 100%基本不能工作了
而这样的程序可能在你的4核笔记本上是没什么关系的.
分享到:
相关推荐
Windows Azure
全书共12章,内容包括云计算概论、云计算技术概观、初探Windows Azure、Windows Azure应用程序开发基础、Windows Azure应用程序开发:Table存储服务、Windows Azure应用程序开发:BLOB存储服务、Windows Azure应用...
全书分为8 章,作者试图通过一个贯穿始终的示例项目以尽量真实的视角介绍整个windows azure 平台。第1 章和第2 章包括云计算的基础知识和windows azure 平台的概述、计费模式和商业案例。第3 章到第7 章,通过完整的...
Windows Azure 概述
Build, deploy and manage cloud solutions using combination of Windows Azure Pack, System Center and Hyper-V Impress your peers at work by learning to build applications that can leverage the cloud to ...
Windows Azure入门教学系列
《Windows Azure从入门到精通》针对微软的云计算平台windows azure,循序渐进地介绍了如何构建和管理云端的可扩展应用,一次一个知识点,同时辅之以适当的练习,可帮助读者轻松掌握基本的编程技能,掌握windows ...
简要描述Windows Azure最新的功能、特色和主要的服务
70-583 PRO: Windows Azure 题库
Windows Azure使用入门 第二课:建立自己的网站.pdf
windows azure
全书分为8章,作者徐子岩试图通过一个贯穿始终的示例项目以尽量真实的视角介绍整个Windows Azure 平台。第1章和第2章包括云计算的基础知识和Windows Azure 平台的概述、计费模式和商业案例。第3章到第7章,通过完整...
Cloud Computing with the Windows Azure Platform Azure电子书 第一本详细介绍Azure的书籍.共363页 文字版,可打印
Windows Azure用户注册流程 非常详细
Learning Windows Azure Mobile Services for Windows 8 and Windows Phone 8 A short, fast and focused guide to enhance your Windows 8 applications by leveraging the power of Windows Azure Mobile ...
Windows Azure云平台概述.pdf
《WINDOWS AZURE》产品介绍——微软官方windows8风格动画ppt模板
Windows Azure从入门到精通含源代码,接受微软的云服务平台Windows Azure帮助包含源代码
Windows Azure Windows Azure Windows Azure Windows Azure Windows Azure Windows Azure Windows Azure Windows Azure Windows Azure 公有云平台是 微软 云操作系统愿景的三大重要组成部分之一,这平台将会转变 ...
Windows Azure快速入门——为什么选择Windows Azure