简体   繁体   English

Azure内部负载均衡器

[英]Inside load balancer in Azure

In Azure, I have 3 Web Apps (for simplicity): 在Azure中,我有3个Web应用程序(为简单起见):

  • Frontend website 前端网站
  • Endpoint 1 终点1
  • Endpoint 2 终点2

The frontend website requests data from an endpoint. 前端网站从端点请求数据。 Both endpoints are synchronized all the time (outside the scope of this question), but sometimes I need to do some maintenance on them, which gives me some downtime. 两个端点始终同步(在本问题的范围之外),但有时我需要对它们进行一些维护,这给了我一些停机时间。

Can I somehow setup a loadbalancer only my frontend website can see, and get any of the online endpoints - like this: 我可以以某种方式设置一个loadbalancer 只有我的前端网站可以看到,并获得任何在线端点 - 像这样:

在此输入图像描述

The last line of this article says Internal Load Balancers might be the fit: 最后一行这篇文章说,内部负载平衡器可能是合适的:

Can I use ILB on PaaS services (Web/Worker roles)? 我可以在PaaS服务(Web / Worker角色)上使用ILB吗?

ILB is designed to work with web/worker roles as well, and it is available from SDK 2.4 onwards. ILB也可以与Web / worker角色一起使用,从SDK 2.4开始提供。

Does anyone know of a guide, or have tried making this with Web Apps? 有没有人知道指南,或尝试使用Web Apps进行此操作?

I dont think this is something you can achieve "natively" with load balancers. 我不认为这是你可以通过负载平衡器“本地”实现的。 App Services are not actually bound to the VNet. 应用服务实际上并未绑定到VNet。 Previously you could only use point-to-site vpn to connect them to vnet, right now there is a new vnet integration feature in preview which might allow you to use internal load balancers, but I doubt that, because they (load balancers) only allow to use virtual machines\\scale sets\\availability sets as backend pools. 以前你只能使用点对站vpn将它们连接到vnet,现在预览中有一个新的vnet集成功能 ,可能允许你使用内部负载均衡器,但我怀疑,因为它们(负载均衡器)只有允许将虚拟机\\ scale sets \\ availability集用作后端池。

Application gateways can be bound to the App Services. 应用程序网关可以绑定到App Services。 And they can be internal as well. 它们也可以是内部的。 You'd also need to restrict App Service(s) to receive traffic from anything that is not you Application gateway. 您还需要限制App Service以从任何非应用程序网关接收流量。

You can use traffic manager\\front door for this sort of load balancing, but the endpoints won't be private 您可以使用流量管理器\\前门进行此类负载平衡,但端点不会是私有的

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

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