webfarm场景中的状态服务器?

发布于 2024-08-30 09:46:35 字数 158 浏览 1 评论 0原文

这是关于状态服务器的一个相当基本的问题,但假设负载均衡器后面有 2 个服务器。如何配置会话状态服务器?

所以,我有 machine1 和 machine2。我假设我只需要在一台机器上安装状态服务器,然后使用内部 IP 来引用该机器。这是正确的吗?相反,我不会在两台机器上安装状态服务器。

This is a fairly basic question about state server but assume there are 2 servers behind a load balancer. How do I configure the session state server?

So, I have machine1 and machine2. I would assume that I would need to install the state server on 1 machine only and then use the internal IP to refer to that machine. Is this correct? As oppose too, I would not install state server on both machines.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浮生面具三千个 2024-09-06 09:46:35

在您的场景(以及大多数网络场场景)中,单个状态服务器是正确的。

您可以通过内部 IP 来引用它,或者为内部网络上的 IP 设置 DNS 条目并使用它来引用它。

In your scenario (and most webfarm scenarios), a single state server is right.

You could refer to it by the internal IP or setup a DNS entry for the IP on the internal network and refer to it using that.

南烟 2024-09-06 09:46:35

单状态服务器很生气,因为如果它确实失败了,你就没有容错能力。您需要一个存储在两台服务器上的分布式状态服务器。

Single state server is mad as you have no fault tolerance, if it does down its game over. You need a distibuted state server stored on both servers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文