Do Azure Websites use sticky-ip load balancing?

懵懂的女人 提交于 2019-12-20 15:29:19

问题


I just stood up a website using the Windows Azure Websites preview. After doing so, I ran YSlow to make sure the score is what I expect it to be. When doing so, I get a message that reads "Use cookiless domains". Well, this is just an informational website, we don't even use session. So I check the http request and there's a cookie in there named "ARRAffinity". Some quick googling turns up this link:

http://social.msdn.microsoft.com/Forums/en-US/windowsazurewebsitespreview/thread/0ba2c2f6-d5a1-40b6-8d0d-e44b58b65753/

Does this mean that Azure websites always use sticky-IP? This is kind of shocking since Web Roles use a round robin behavior.


回答1:


Yes, Windows Azure Web Sites will do sticky load balancing using the ARRAffinity cookie. And, it applies to free, shared, and reserved models.

I imagine this is done to more easily support the custom galleries that might not run correctly without a proper state server, and it also allows for easier scaling without worrying about stateless servers.



来源:https://stackoverflow.com/questions/15168982/do-azure-websites-use-sticky-ip-load-balancing

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