分散式快取主機可能會導致快取可靠性問題 (SharePoint Server)

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

規則名稱:分散式快取主機可能會導致快取可靠性問題。

摘要: 此快取主機上的分散式快取服務已停止,但尚未從伺服器陣列中取消登錄。 為了避免發生可靠性問題,我們建議您在伺服器上啟動分散式快取服務,或從快取叢集中移除快取主機。

原因:此分散式快取主機上的分散式快取服務已停止,但尚未從伺服器陣列中取消登錄。

解決方案: 使用 Microsoft PowerShell 在伺服器上啟動分散式快取服務。

  1. 確認您具備下列成員身分:
  • SQL Server 執行個體上的 securityadmin 固定伺服器角色。

  • 所有要更新之資料庫上的 db_owner 固定資料庫角色。

  • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。

  • 伺服器陣列管理員群組。

    系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。

    注意事項

    [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。 如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdmin

  1. 啟動 SharePoint 管理命令介面。

  2. 在想要啟動分散式快取服務的伺服器上,於 PowerShell 命令提示字元處輸入下列命令:

Add-SPDistributedCacheServiceInstance
  1. In the SharePoint Central Administration website, click Application Management. In the Service Applications section, click Manage services on server.

  2. 在 [伺服器上的服務] 頁面上,確認已列出分散式快取服務,且狀態為 [已啟動]

解決方案: 使用 Windows PowerShell,從快取叢集移除快取主機。

  1. 確認您具備下列成員身分:
  • SQL Server 執行個體上的 securityadmin 固定伺服器角色。

  • 所有要更新之資料庫上的 db_owner 固定資料庫角色。

  • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。

  • 伺服器陣列管理員群組。

    系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。

    注意事項

    [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。 如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdmin

  1. 啟動 SharePoint 管理命令介面。

  2. 在 PowerShell 命令提示字元處,輸入下列命令:

Remove-SPDistributedCacheServiceInstance

注意事項

[!附註] 此命令會停止快取服務,而非留存的快取資料將會遺失。 如果您想要保存快取資料,請使用在 SharePoint Server 中管理分散式快取服務說明的正常關機程序,然後執行 Remove-SPDistributedCacheServiceInstance Cmdlet。 Remove-SPDistributedCacheServiceInstance Cmdlet 會停止並停用基礎 AppFabric 快取服務。 請勿使用執行 Add-SPDistributedCacheServiceInstance Cmdlet 以外的方式來重新啟動 AppFabric 快取服務。

如需詳細資訊,請參閱 Remove-SPDistributedCacheServiceInstance

  1. Verify that the server is removed from the cache cluster. To do this, in Central Administration, click Manage services on server, and then, on the Services on Server page, make sure that the Distributed Cache service is not listed.

另請參閱

概念

規劃 SharePoint Server 中的摘要和分散式快取服務

其他資源

規劃與使用分散式快取服務