简体   繁体   English

Azure VIP交换到不同数量的端点

[英]Azure VIP Swap to different number of end points

I'm trying to replace a hosted service with an empty redirect project, however when I try to do so I get the following error; 我试图用空的重定向项目替换托管服务,但是当我尝试这样做时,出现以下错误;

Windows Azure cannot perform a VIP swap between deployments that have a different number of endpoints. Windows Azure无法在具有不同终结点数量的部署之间执行VIP交换。

I believe the only solutions available to me are the following; 我相信唯一可用的解决方案如下:

  1. Point DNS to the staging deployment which after 48 hours of propagation delete the production instance and change my DNS to a new deployment of the empty redirect project. 将DNS指向暂存部署,该暂存部署在传播48小时后会删除生产实例,并将我的DNS更改为空重定向项目的新部署。
  2. Delete the production instance and then immediately flip staging. 删除生产实例,然后立即翻转暂存。 This will of course result in downtime. 当然,这将导致停机。

Unfortunetly changing DNS records isnt an option for me at this stage so unless anyone can suggest an alternative I will have to go with Point #2. 不幸的是,在此阶段更改DNS记录对我来说不是一个选择,因此,除非有人可以提出替代方案,否则我将不得不选择第2点。

Although my only query with this is once I delete production and flip staging will the new production instance retain the old IP as like I said above im unable to change the DNS records. 尽管我对此的唯一查询是一旦删除生产并进行翻转暂存,新的生产实例将保留旧IP,就像我上面所说的那样,无法更改DNS记录。

Thanks, any queries let me know. 谢谢,任何疑问都让我知道。

I resolved this issue by adding the additional endpoints to staging through another deployment. 我通过将其他终结点添加到另一个部署阶段来解决了此问题。 Although the application will never use them it allowed me to deploy without downtime. 尽管该应用程序永远不会使用它们,但它使我能够在不停机的情况下进行部署。

Alternative solutions are included in my question. 我的问题中包括替代解决方案。

删除生产插槽中的当前部署后,应将IP地址分配回池(您不可用)。

To spare you the hassle of re-deploying and extra 15 min of wait, 为了避免您重新部署的麻烦和额外的15分钟等待时间,

you could do it within a minute by deleting PRODCTION slot (if it's applicable !), then you'll do a VIP Swap from PROD: Empty STAGING : Your deployment 您可以在一分钟内删除PRODCTION插槽(如果适用!)来完成此操作,然后从PROD进行VIP交换:空标记:您的部署

"OK Deleted the production deployment of cloud service od..." “确定删除了云服务的生产部署od ...”

and end up having 并最终拥有

"Successfully swapped the deployments in cloud service od..." “成功交换了云服务od中的部署...”

Vincent Thavonekham 文森特·萨沃尼坎(Vincent Thavonekham)

This often is a result of having RDP (remote desktop) enabled in one slot but not the other. 这通常是由于在一个插槽中启用了RDP(远程桌面)而不在另一个插槽中启用了该结果。 RDP creates additional endpoints, thus the error message. RDP创建其他端点,因此会出现错误消息。 You can either (a) enable RDP on the one that doesn't have it or (b) disable RDP on the one that does have it. 您可以(a)在没有RDP的RDP上启用RDP,或者(b)在没有RDP的RDP上禁用RDP。 The VIP swap should then work. 然后,VIP交换应该起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM