Azure WebRole Sticky Load Balance

隐身守侯 提交于 2019-12-11 07:58:57

问题


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.

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

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?

Thanks


回答1:


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

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.

Ref: Get started creating an internal load balancer (classic) for cloud services



来源:https://stackoverflow.com/questions/53867544/azure-webrole-sticky-load-balance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!