如何包含 NCache IP绑定

NCache 通常在集群环境中运行,这使其成为网络密集型资源。 在一个典型的 NCache 环境,信息通过以下方式交换:

  1. 缓存服务器与其他缓存服务器通信 NCache 集群(集群通信)
  2. NCache 与集群缓存服务器通信 Remote Clients(客户端-服务器通信)

在此期间 NCache 安装过程, NCache 自动绑定到第一个可用的 IP 地址,该地址可用于两种类型的通信,即集群内缓存服务器与缓存服务器之间或 Remote Clients(Web 服务器)和 NCache 服务器。 有时,在安装过程中可能没有正确配置 IP 绑定属性,用户可能会看到以下与 NCache 服务未启动:

“ NCache 服务已启动然后停止。 一些服务自动启动和停止,如果他们没有工作要做”

添加另一个缓存服务器时,由于 IP 绑定不正确或 remote client 到 NCache 集群在 NCache 经理。 错误如下所示:

"NCache 无法通过“机器的 IP 地址”联系服务”

为了解决这个问题,可以手动配置 IP Binding。 指定 IP 地址 NCache Cluster Server 到 Server 通信或 Remote Client 至 NCache 集群通信,你将不得不修改以下两行 Alachisoft.NCache.Service.exe.config 文件位于 (C:\Program Files\NCache\bin\service) 然后重新启动 NCache 服务:


<add key = "NCacheServer.BindToClientServerIP" value = "20.200.20.18" />
<add key = "NCacheServer.BindToClusterIP" value = "20.200.20.18" />

BindToClusterIP: 用来绑定 NCache 到网络接口卡以用于集群范围的通信并提供适当的 IP 地址。 NCache 将使用此 IP 进行缓存服务器到服务器的通信。

BindToClientServerIP: 用来绑定 NCache 到要使用的网络接口 Remote Client 缓存服务器通信并提供适当的 IP 地址。 NCache 将为所有人侦听此 IP remote client 请求。

NCache 也可以配置为对每种类型的通信使用单独的 NIC(使用双 NIC)。

一旦一个 NCache 服务 IP 绑定已更改,您还应确保所有 Remote Client针对这个缓存集群配置的 s 应该有他们的 客户端.ncconf (C:\程序文件\NCache\Config) 文件使用缓存服务器 IP 地址更新,如下所示。

例如,对于名为 DemoCache 的缓存,您需要在 客户端.ncconf 文件在 Remote Client 节点(与您为 绑定到客户端服务器IP 上面的标签)。

<cache id="DemoCache" client-cache-id="" client-cache-syncmode="optimistic" 
	default-readthru-provider="" default-writethru-provider="" 
	load-balance="True">
<server name="20.200.20.18"/>

接下来做什么?

联系我们

联系电话
©版权所有 Alachisoft 2002 - 版权所有。 NCache 是 Diyatech Corp. 的注册商标。