简体   繁体   English

什么是等效于VIP交换的Azure资源管理器?

[英]What is the Azure Resource Manager equivalent of VIP Swap?

Azure classic Cloud Services come with a built-in load balancer that allows a fast VIP swap from production to staging, and vice versa. Azure经典云服务附带一个内置的负载平衡器,该负载平衡器允许从生产到暂存的快速VIP交换,反之亦然。 What equivalent is provided by Azure Resource Manager? Azure资源管理器提供了什么等效功能? I can use DNS, but then I have the TTL delay. 我可以使用DNS,但是有TTL延迟。

I want the fast swap because my back-end servers are stateful and cannot process the same data in both staging and production without overwriting each other. 我想要快速交换,因为我的后端服务器是有状态的,并且不能在阶段和生产中处理相同的数据而不会彼此覆盖。 In my current system, out-of-date connections (eg because of HTTP keep-alive) are rejected and a reload is forced, forcing fresh connections. 在我当前的系统中,过时的连接(例如由于HTTP keep-alive)将被拒绝,并强制重新加载,从而强制建立新的连接。

I guess I might be able to do it using Azure Application Gateway, but it is not listed as one of its features . 我想我可以使用Azure应用程序网关来做到这一点,但是它没有被列为其功能之一

In Azure resource manager, there are three ways, Azure Load Balancer (layer 4), Application Gateway (layer 7) and Traffic Manager (DNS level). 在Azure资源管理器中,有三种方法, Azure负载平衡器 (第4层), 应用程序网关 (第7层)和流量管理器 (DNS级别)。 I think you can use Load Balancer in you scenario. 我认为您可以在方案中使用负载均衡器。 The following table helps understanding the difference between Load Balancer and Application Gateway: 下表有助于理解负载均衡器和应用程序网关之间的区别: 在此处输入图片说明

You can do VIP swap in ARM with 2 Azure load balancers by disassociating the public IPs, then reassigning them. 通过取消关联公共IP,然后重新分配它们,可以在带有2个Azure负载平衡器的ARM中进行VIP交换。 It's not a fast deployment slot swap like you can do with cloud services however, as can take a minute to disassociate both IP addresses (you could speed this up by doing it in parallel), and based on your question you've already looked at this approach, but documenting it here as an option. 这不是像使用云服务那样的快速部署插槽交换,而是需要一分钟的时间来取消两个IP地址的关联(您可以通过并行执行来加快此速度),并且已经根据您的问题进行了研究这种方法,但可以选择在此处进行记录。 There are some notes on this approach here: https://msftstack.wordpress.com/2017/02/24/vip-swap-blue-green-deployment-in-azure-resource-manager/ 这里有一些关于这种方法的注释: https : //msftstack.wordpress.com/2017/02/24/vip-swap-blue-green-deployment-in-azure-resource-manager/

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

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