AppFabric缓存群集 - 无法启动第二个主机

时间:2010-08-30 21:23:53

标签: cluster-computing appfabric

我在使用2台主机运行AppFabric群集时遇到了问题。我已经验证它只适用于1个主机(即,当我浏览Web应用程序时缓存项目数量增加),但是当我尝试将第二个主机加入群集时,我得到以下异常:

Failed to read remote registry key from host 289851-cache2: 
Microsoft.ApplicationServer.Caching.DataCacheException: 
ErrorCode<ERRCAdmin026>:SubStatus<ES0001>:Remote registry access failed on host 289851-cache2.
Check if the required permissions are available. ---> System.IO.IOException: The network path was not found.

    at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str)

    at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view)

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)

    --- End of inner exception stack trace ---

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetServerVersion(String 

hostName),DistributedCache.CacheAdmin,Error

其中289851-cache2是第二个主机的名称。

即使异常表示检查权限,我已将缓存连接帐户更改为我的域帐户并在任何地方授予访问权限 - 该帐户在两台AppFabric主机上都是管理员,具有对网络共享的完全访问权限,而我以管理员身份运行AppFabric PowerShell。但是在我运行Start-CacheCluster之后,第一个主机的状态为UP,而第二个主机的状态为STARTING无限期。我需要重新启动机器才能执行任何其他操作,因为即使通过任务管理器或控制面板中的服务,它也不会让我停止,启动或终止进程。

我们运行Windows Server 2008 64位,安装了WindowsServerAppFabricSetup_x64_6.0(因为我认为需要Windows Server 2008 R2,而不是6.1,因为配置存储在网络共享上)。

主机1的DistributedCacheAgent.config:

  <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="1739552749" size="1228" leadHost="true" account="<domain account>" name="localhost" cacheHostName="AppFabricCachingService" cachePort="22233" />

主机2的DistributedCacheAgent.config:

  <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="1739552749" size="1228" leadHost="false" account="<domain account>" name="localhost" cacheHostName="AppFabricCachingService" cachePort="22233" />

提前致谢。