我想在Azure中放置一个应用程序。我需要有2台服务器,以防服务器出现故障,它会自动将故障转移到其他服务器。这是否可以在Azure中使用VM,以便它们可以使用相同的公共IP地址?
解决方案
如果要使用相同的公共IP地址,则需要在同一个云服务中部署多个您的应用实例。然后在 service配置文件中,您可以指定实例计数为1,这样云服务将启动另一个已部署到服务的服务,以确保始终有一个实例在运行。要实现此目的,您需要熟悉Azure中的发布云服务。您可能会发现以下内容有帮助。
- msdn.microsoft/en-us/library/azure/ee460772.aspx
- blogs.msdn/b/jnak/archive /2009/11/18/tools-to-configure-windows-azure-service-definition-and-configuration-files.aspx
I want to put one of our Apps in Azure. I need to have 2 servers so in case the server fails it will automaticallyfail overto the other server. Is this possible with using VMs in Azure so they can use the same public IP address?
解决方案If to have the same public IP address, you will need to deploy multiple your app instances in the same cloud service. Then inserviceconfiguration file, you can specify tothe instance count is1, such that the cloud servicewill start another one already deployed to the service to ensure there is always one instance running. To implement this, you need to be familiar with publishing cloud service in Azure. You may find the following helpful.
- msdn.microsoft/en-us/library/azure/ee460772.aspx
- blogs.msdn/b/jnak/archive/2009/11/18/tools-to-configure-windows-azure-service-definition-and-configuration-files.aspx
更多推荐
Windows Azure的故障转移功能
发布评论