Azure WebRole粘性负载平衡 [英] Azure WebRole Sticky Load Balance

查看:98
本文介绍了Azure WebRole粘性负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure WebRole,它使用PerSession设置发布WCF服务.这意味着会话需要保留很长时间……这是由于同步框架的缘故,无法更改.

I have an Azure WebRole, which publishes a WCF Service with PerSession setting. This means, session needs to be preserved for a long time... This is because of synch-framework and cannot be changed.

现在,当我想在该Web角色(经典Azure云服务)上使用多实例时遇到问题

Now I have the problem when I want to use Multi-Instances on that Web Role (Classic Azure Cloud Service)

我可以为应用程序网关配置的端点不是公共WebRole而是每个实例,以便网关处理平衡吗? 怎么样?

Can I configure an Application Gateway with endpoints not to the Public WebRole but to each Instances, so that the Gateway handles the Balancing? How?

谢谢

推荐答案

从技术上讲,使用Azure Application Gateway进行直接Web通信-Azure门户

Technically, the Application Gateway support for multi-tenant backends, you could configure an IP address or FQDN of your instances in the backends. Here is a quickstart: Direct web traffic with Azure Application Gateway - Azure portal

但是,Application Gateway被称为应用程序层(OSI层7)负载平衡,它使您能够管理到Web应用程序的流量.也许传统的第4层负载平衡器更适合平衡WCF服务.此外,在Cloud Services中,您会在创建服务时自动配置负载均衡器.您可以在问题中获得更多解释.

However, the Application Gateway is known as application layer (OSI layer 7) load balancing which enables you to manage traffic to your web applications. Perhaps the traditional layer 4 load balancer is better for balancing WCF Service. Moreover, In Cloud Services, you get a load balancer automatically configured when you create the service. You could get more explanation in this question.

参考:开始为云服务创建内部负载平衡器(经典)

这篇关于Azure WebRole粘性负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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