做Azure的网站使用粘性IP负载均衡? [英] Do Azure Websites use sticky-ip load balancing?

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

问题描述

我刚站起来使用Windows Azure网站preVIEW网站。这样做之后,我跑了YSlow的,以确保成绩是什么,我希望它是。这样做时,我得到一个消息,上面写着使用cookiless域。那么,这仅仅是一个信息网站,我们甚至不使用会话。所以,我检查HTTP请求和那里面有一个cookie名为ARRAffinity。一些快速谷歌搜索变成了此链接:

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:

<一个href=\"http://social.msdn.microsoft.com/Forums/en-US/windowsazurewebsites$p$pview/thread/0ba2c2f6-d5a1-40b6-8d0d-e44b58b65753/\" rel=\"nofollow\">http://social.msdn.microsoft.com/Forums/en-US/windowsazurewebsites$p$pview/thread/0ba2c2f6-d5a1-40b6-8d0d-e44b58b65753/

这是否意味着Azure的网站总是使用粘性IP?这是一种令人震惊的,因为Web角色使用一个循环赛的行为。

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

推荐答案

是的,Windows Azure的网站会做粘负荷使用ARRAffinity cookie的平衡。而且,它适用于自由,共享和保留模式。

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.

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

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