伺服器陣列中分散式快取主機的數目超過建議值 (SharePoint Server)

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

規則名稱:伺服器陣列中分散式快取主機的數目超過建議值。

摘要: 在具有四個以上伺服器的伺服器陣列上,您不得在伺服器陣列的所有伺服器上啟動分散式快取服務。 您只能在 SharePoint Server 2016 MInRole 中已設為分散式快取角色的伺服器上執行分散式快取。 如果您將所有伺服器設定為快取主機,則伺服器陣列可能會遇到可靠性和效能問題。 如需詳細資訊,請參閱< SharePoint Server 2016 的 MinRole 伺服器角色概觀>。

原因:此伺服器陣列上的每部伺服器都會啟動分散式快取服務。

解決方案: 使用 Windows PowerShell 來減少快取主機數目。

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

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

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

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

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

    注意事項

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

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

  2. 從快取叢集內移除一部或多部伺服器。 在您想要從快取叢集內移除的每部伺服器上,執行下列 Cmdlet:

    Remove-SPDistributedCacheServiceInstance

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

另請參閱

概念

在 SharePoint Server 中管理分散式快取服務

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

其他資源

Add-SPDistributedCacheServiceInstance

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