Windows Azure VM Role Note
2012-02-05 01:20
369 查看
VM Role
-GreatControl VM Level, To migrate existing application
-hosted onwindows image
VM Role is PaaS
The first thing to note about the VM role in its current formis that it is
not considered infrastructure as aservice.
This makes sense when you consider the Azure Fabric—the Fabric Controller can bring down any role instance at anytime, for many good reasons,including hardware failure, Host OS updates, oreven
to gain hardware efficiencies in the data center. In addition, the nodes sit behind a round-robin load balancer. This is whatmakes Azure strong as a PaaS provider.
Since the nodes sit behind a round-robin load balancer,
In order tomaintain the Azure SLA,You will need at least two instances of your roledeployed
This has several architectural impacts, including the following:
• State management. Because there are two instances runningbehind a roundrobin
load balancer, you will need to store runtime stateinformation outside the
VM. Windows Azure Caching is a good candidate for this.
File management: Files will also need to be maintainedoutside the VM. Because
the load balancers route requests in a round-robin fashion,the file systems on
each compute instance will quickly become dissimilar andfragmented unless files
are stored centrally. If the files are read-only files, thenWindows
Azure Drives are
a great solution. Otherwise, consider using Azure blob storage.
Because if has read/write, Azure Drives is durable
but only for one instance, it cannot maintain all Drives to be sync.
VM Role Use Case
-One would be anapplication that requires many other products to be installed to run correctly
-take time
-not support insilence mode
-Long runningapplication installations
-Error-proneapplication installations
-Applicationinstallations requiring manual interaction
So, what this means today is that VM role is notwell suited to running stateful server applications.
Obviously, you wouldn’t want to install ActiveDirectory to a VM role, but applications like SQL Server
and Oracle are also not good candidates at thispoint.
At a high level, there are the following threesteps to deploying a VM to Windows Azure:
1. Create a base image in Hyper-V.
2. Apply sysprep.exe.
3. Upload to Windows Azure.
Features Missing in VM Role compare with Web/Worker Role
-Automated,Consistent OS servicing
Lifecycle of VM Role
-Build VMImage
-WindowsServer 2008 R2, create Base.VHD
-CustomizeVHD
-Installsoftware
-WindowsPatches
-CustomerApplication
-KeyPiece:Windows Azure Integration Component (communicate with fabric controler)
-SaveDiff.VHD
-Uploadto Blob Storage
-Installto VM Instance
-CreateService; Test Locally
-Upload VMImage
-DeployService
-MaintainService
-UpgradService
The operating system that is installed on the base VHD canbe one of the following:
Windows Server 2008 R2 Enterprise (English only)
Windows Server 2008 R2 Standard (English only)
Deployment Pattern
-HighPerformance Computing
-e.g.:MediaEncoding Software
-Migratingexisting application
-e.g.:LegacyJava/Tomcat Web app + Windows Azure Connect + On-premise SQL Server
-GreatControl VM Level, To migrate existing application
-hosted onwindows image
VM Role is PaaS
The first thing to note about the VM role in its current formis that it is
not considered infrastructure as aservice.
This makes sense when you consider the Azure Fabric—the Fabric Controller can bring down any role instance at anytime, for many good reasons,including hardware failure, Host OS updates, oreven
to gain hardware efficiencies in the data center. In addition, the nodes sit behind a round-robin load balancer. This is whatmakes Azure strong as a PaaS provider.
Since the nodes sit behind a round-robin load balancer,
In order tomaintain the Azure SLA,You will need at least two instances of your roledeployed
This has several architectural impacts, including the following:
• State management. Because there are two instances runningbehind a roundrobin
load balancer, you will need to store runtime stateinformation outside the
VM. Windows Azure Caching is a good candidate for this.
File management: Files will also need to be maintainedoutside the VM. Because
the load balancers route requests in a round-robin fashion,the file systems on
each compute instance will quickly become dissimilar andfragmented unless files
are stored centrally. If the files are read-only files, thenWindows
Azure Drives are
a great solution. Otherwise, consider using Azure blob storage.
Because if has read/write, Azure Drives is durable
but only for one instance, it cannot maintain all Drives to be sync.
VM Role Use Case
-One would be anapplication that requires many other products to be installed to run correctly
-take time
-not support insilence mode
-Long runningapplication installations
-Error-proneapplication installations
-Applicationinstallations requiring manual interaction
So, what this means today is that VM role is notwell suited to running stateful server applications.
Obviously, you wouldn’t want to install ActiveDirectory to a VM role, but applications like SQL Server
and Oracle are also not good candidates at thispoint.
At a high level, there are the following threesteps to deploying a VM to Windows Azure:
1. Create a base image in Hyper-V.
2. Apply sysprep.exe.
3. Upload to Windows Azure.
Features Missing in VM Role compare with Web/Worker Role
-Automated,Consistent OS servicing
Lifecycle of VM Role
-Build VMImage
-WindowsServer 2008 R2, create Base.VHD
-CustomizeVHD
-Installsoftware
-WindowsPatches
-CustomerApplication
-KeyPiece:Windows Azure Integration Component (communicate with fabric controler)
-SaveDiff.VHD
-Uploadto Blob Storage
-Installto VM Instance
-CreateService; Test Locally
-Upload VMImage
-DeployService
-MaintainService
-UpgradService
The operating system that is installed on the base VHD canbe one of the following:
Windows Server 2008 R2 Enterprise (English only)
Windows Server 2008 R2 Standard (English only)
Deployment Pattern
-HighPerformance Computing
-e.g.:MediaEncoding Software
-Migratingexisting application
-e.g.:LegacyJava/Tomcat Web app + Windows Azure Connect + On-premise SQL Server
相关文章推荐
- Windows Azure VM Role (0) VM Role 功能下线
- Windows Azure VM Role (7) 创建服务
- Windows Azure VM Role (6) 将VHD上传到Windows Azure平台
- Windows Azure VM Role (8) 在VHD安装JRE和Tomcat 6.0
- Windows Azure VM Role (5) 安装Azure VM Role组件
- Windows Azure VM Role (4) 在VHD中安装需要的功能
- Windows Azure VM Role (2) 创建VHDVHD
- Windows Azure VM Role (3) 在VHD中安装Windows Server 2008 R2
- 排查在 Azure 中创建、重启 Windows VM 或调整其大小时发生的分配失败
- Windows Azure Cloud Service (12) PaaS之Web Role, Worker Role, Azure Storage Queue(下)
- 排查在 Azure 中创建、重启 Windows VM 或调整其大小时发生的分配失败
- Windows Azure VM上配置FTP服务器
- 关于 Azure Windows VM 的磁盘和 VHD
- Windows Azure VM的两种shut down 方式
- Windows Azure Cloud Service (11) PaaS之Web Role, Worker Role(上)
- Windows Azure Cloud Service (10) Role的生命周期
- Running a Remote Desktop on a Windows Azure Linux VM
- Windows Azure VM的两种shut down 方式
- 如何在Windows Azure VM上的SQL Server和Windows Azure SQL Database两者中做出选择