我一直有問題得到運行2臺主機的AppFabric集羣。我已經驗證了它只適用於1臺主機(即我在瀏覽網絡應用程序時緩存項數增加),但是當我嘗試將第二臺主機加入羣集時,我收到以下例外情況:AppFabric緩存集羣 - 無法啓動第二臺主機
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,而第二臺主機的狀態爲無限期啓動。我需要重新啓動機器來執行其他任何操作,因爲即使通過任務管理器或通過控制面板中的服務,它也不會讓我停止,啓動或終止進程。
我們運行的Windows Server 2008 64位WindowsServerAppFabricSetup_x64_6.0安裝(不是6.1,因爲我認爲需要Windows Server 2008 R2)配置存儲在網絡共享上。
主機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" />
預先感謝。
+1我已經看到這種情況發生過,但我還沒有得到來的,爲什麼還... – PhilPursglove 2010-08-31 10:26:46
我已經成功地得到了底部如果您有興趣的話,可以從微軟的某人回覆我在AppFabric論壇的論壇帖子(http://social.msdn.microsoft.com/Forums/en/velocity/thread/4fd844f6-3530-4115-8982-d7562e699627)跟隨。 – Lester 2010-08-31 18:27:52
看看@Lester引用的上述論壇條目。它詳述了我們如何解決這個問題。 – s1mm0t 2010-09-01 16:02:00