Azure Application Gateway回退无法正常工作

时间:2017-10-12 06:18:00

标签: azure azure-virtual-machine azure-virtual-network

如果第一台服务器不健康,是否可以将Azure Application Gateway设置为使用一台服务器作为后备?

我们目前在基于路径的规则中进行了此设置:

    const resualt = R.compose(
  R.pick(['amount']),
  await Promise.all(),
  R.map(await order.upstreamOrders, uOrder.invoice),
);

如果我们取下服务器1,即使服务器2应该能够处理它,图像也会返回502网关错误。我预计不健康的服务器会暂时从基于路径的规则中删除,直到它们健康。

1 个答案:

答案 0 :(得分:0)

Yes, It's possible to use Application Gateway to achieve that.But you need to add the two VMs in one backend pool.

Just go to one backend pool and then add the second VM into the pool. Then click save.

Also,it's necessary to configure VNet and probe, etc.

enter image description here

More about how to use Application Gateway to offer various layer 7 load balancing capabilities for VMs, refer to this document.