使用IIS NLB时如何将用户请求保留在同一服务器上? [英] How to keep user requests on the same server when using IIS NLB?

查看:59
本文介绍了使用IIS NLB时如何将用户请求保留在同一服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个使用NLB运行的IIS服务器.不幸的是,我无法使用共享会话服务器,因此每个服务器都在使用自己的会话.如何确保将来自同一用户的所有请求转发到同一IIS服务器?

I have two IIS servers running using NLB. Unfortunatelly I cannot use shared session server, so every server is using its own session. How can I ensure, that all requests from the same user are forwarded to the same IIS server?

推荐答案

我认为您正在寻找的是粘性会话.粘性会话由您的负载均衡器实现.您可能需要设置可以进行粘性会话的外部负载平衡器(BIG-IP,HAProxy等).

I think what you're looking for is Sticky Sessions. Sticky sessions are implemented by your load balancer though. You probably need to setup an outside load balancer (BIG-IP, HAProxy, etc.) that can do sticky sessions.

这篇关于使用IIS NLB时如何将用户请求保留在同一服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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