产生静态IP地址在Azure上的Web角色托管WCF服务 [英] Produce Static IP address for hosting wcf service in web role on Azure

查看:217
本文介绍了产生静态IP地址在Azure上的Web角色托管WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发这是会在Azure的Web角色被托管的服务。我们将与第三方服务tieup获取数据。但是,我们必须给静态IP地址,我们与第三方服务的注册。有天青没有概念ofstatic IP地址。
我也知道有关虚拟IP,但它会继续改变,当有新的部署或创建Web角色的新实例。请帮助我们,并告诉我,我怎么能解决这个问题。

We are developing the service which is going to be hosted in web role in Azure. We are going to tieup with third party service to get data. But we have to give static ip address for registration of our service with third party. There is no concept ofstatic ip adress in Azure. I am also aware about virtual IP but it will keep on changes when there is new deployment or creating new instance of web role. Please help us and tell me what and how I can resolve this issue.

注:第三方给予亚马逊的例子。亚马逊的EC2比如有弹性IP地址分别是专为动态云计算的静态IP地址。

Note: Third party has given a example of Amazon. Amazon's EC2 for instance has Elastic IP Addresses which are "static ip addresses designed for dynamic cloud computing."

我只是读关于Azure的VIP为托管服务MSDN上的文章。我得到了以下信息。

I was just reading the article on MSDN about VIP in Azure for hosted service. I got below information.

在整个部署的生命周期,分配VIP不会改变,无论是操作上的部署,包括更新,重新启动,并重新映像操作系统。对于一个给定的部署贵宾将持续,直到部署被删除。当客户交换单一托管服务的舞台和生产部署之间的VIP,无论是部署贵宾都坚持着。贵宾与部署,而不是托管服务。当部署被删除,与部署相关的VIP相关联会回到游泳池和相应重新分配,即使托管服务不会被删除。的Windows Azure目前不支持客户保留部署的生命周期之外的VIP。

"Throughout the lifetime of a deployment, the VIP assigned will not change, regardless of the operations on the deployment, including updates, reboots, and reimaging the OS. The VIP for a given deployment will persist until that deployment is deleted. When a customer swaps the VIP between a stage and production deployment in a single hosted service, both deployment VIPs are persisted. A VIP is associated with the deployment and not the hosted service. When a deployment is deleted, the VIP associated with that deployment will return to the pool and be re-assigned accordingly, even if the hosted service is not deleted. Windows Azure currently does not support a customer reserving a VIP outside of the lifetime of a deployment."

问:如果我想扩大我在Azure上serive,需要有Web角色的多个实例,还是贵宾将同为其部署该服务

Question: If I want to scale up my serive on Azure and need to have multiple instances of Web role, still the VIP would be same for that service which is deployed.

推荐答案

只要你不删除并重新部署,应用程序将保持其分配的IP地址。见<一href=\"http://blogs.msdn.com/b/windowsazure/archive/2011/07/06/windows-azure-deployments-and-the-virtual-ip-address.aspx\"相对=nofollow>为具体这篇文章。

As long as you don't delete and redeploy, your app will maintain its assigned IP address. See this article for specifics.

截至2011年10月,有其他方法,而不需要更新您的部署删除+重新部署,其中包括:

As of October 2011, there are additional ways to update your deployment without requiring a delete+redeploy, including:


  • 更改虚拟机的大小(放大或按比例缩小)

  • 增加本地存储

  • 添加或删除角色部署

  • 更改端点的数量或类型

更多的细节在<一个href=\"http://blogs.msdn.com/b/windowsazure/archive/2011/10/19/announcing-improved-in-place-updates.aspx\"相对=nofollow>这篇文章。

这篇关于产生静态IP地址在Azure上的Web角色托管WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆