使用NLB作为服务器名称的路由模式 [英] Routing mode with NLB as server name

查看:67
本文介绍了使用NLB作为服务器名称的路由模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用路由模式与CacheCluster机器进行通信。我们在CacheCluster中有2台机器,我们打算在设置DataCacheServerEndPoint的数组中提供NLB网关名称。这样,如果一个CacheCluster 机器
关闭,则群集中的另一台机器仍然能够使用在客户端上设置缓存所需的初始配置来应答。使用NLB是否有任何问题?

Hi, we are using Routing mode to communicate with CacheCluster machines. We have 2 machines in the CacheCluster, we intend to give a NLB gateway name in the array where DataCacheServerEndPoint is set. This way, if one CacheCluster machine is down, the other machine in the cluster is still able to answer with the initial configuration necessary to setup the cache on the client. Is there any concern in using NLB for that?

var configuration =
new DataCacheFactoryConfiguration ();

 

var servers = new DataCacheServerEndpoint [ 1];

servers [0] = new DataCacheServerEndpoint( NLBcache HostName ,cachePort);

servers[0] = new DataCacheServerEndpoint(NLBcacheHostName, cachePort);

configuration.Servers = servers;

 

configuration.LocalCacheProperties =
new DataCacheLocalCacheProperties int 。MaxValue,expirationTime,
DataCacheLocalCacheInvalidationPolicy .TimeoutBased);

configuration.LocalCacheProperties = new DataCacheLocalCacheProperties(int.MaxValue, expirationTime, DataCacheLocalCacheInvalidationPolicy.TimeoutBased);

 

var factory =
new DataCacheFactory (配置);

var factory = new DataCacheFactory(configuration);

realCache = factory.GetCache(cacheName);

推荐答案

Paulo,

Paulo,

对于长时间的延迟感到抱歉。此策略应该没有问题如果你有任何问题,请告诉我们。谢谢!

Sorry for the long delay. There should not be a problem with this strategy. Let us know if you do have any issues with it. Thanks!

Jason Roth

Jason Roth


这篇关于使用NLB作为服务器名称的路由模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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