伺服器陣列中分散式快取主機的數目超過建議值 (SharePoint Server)The number of Distributed Cache hosts in the farm exceeds the recommended value (SharePoint Server)

摘要: 了解如何解決 SharePoint Server 2016 和 SharePoint 2013 的 SharePoint Health Analyzer 規則「伺服器陣列中分散式快取主機的數目超過建議值」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "The number of Distributed Cache hosts in the farm exceeds the recommended value" for SharePoint Server 2016 and SharePoint 2013.

規則名稱: 伺服器陣列中分散式快取主機的數目超過建議值。Rule Name: The number of Distributed Cache hosts in the farm exceeds the recommended value.

摘要: 在具有四個以上伺服器的伺服器陣列上,您不得在伺服器陣列的所有伺服器上啟動分散式快取服務。您只能在 SharePoint Server 2016 MInRole 中已設為分散式快取角色的伺服器上執行分散式快取。如果您將所有伺服器設定為快取主機,則伺服器陣列可能會遇到可靠性和效能問題。如需詳細資訊,請參閱< SharePoint Server 2016 的 MinRole 伺服器角色概觀>。Summary: On a farm with four or more servers, you must not start the Distributed Cache service on all servers on the farm. You can only run Distributed cache on SharePoint Server 2016 servers that are configured as Distributed cache role in MInRole. If you configure all servers as cache hosts, you may experience reliability and performance problems in the farm. For more information, see Overview of MinRole Server Roles in SharePoint Server 2016.

原因: 此伺服器陣列上的每部伺服器都會啟動分散式快取服務。Cause: The Distributed Cache service is started on every server on this farm.

解決方案: 使用 Windows PowerShell 來減少快取主機數目。Resolution: Reduce the number of cache hosts by using Windows PowerShell.

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 Microsoft PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the Microsoft PowerShell cmdlets.

    • 伺服器陣列管理員群組。Farm Administrators group.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 從快取叢集內移除一部或多部伺服器。在您想要從快取叢集內移除的每部伺服器上,執行下列 Cmdlet:Remove one or more servers from the cache cluster. On each server that you want to remove from the cache cluster, run the following cmdlet:

    Remove-SPDistributedCacheServiceInstance

  4. 確認已從快取叢集移除伺服器。若要執行這項操作,請在 SharePoint 管理中心網站中按一下 [管理伺服器上的服務]*,然後確定 [伺服器上的服務]* 頁面未列出您從中移除服務之伺服器的分散式快取服務。Verify that the server is removed from the cache cluster. To do this, in CentralAdmin_1st, 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.

另請參閱See also

概念Concepts

在 SharePoint Server 中管理分散式快取服務Manage the Distributed Cache service in SharePoint Server

規劃 SharePoint Server 中的摘要和分散式快取服務Plan for feeds and the Distributed Cache service in SharePoint Server

其他資源Other Resources

Add-SPDistributedCacheServiceInstanceAdd-SPDistributedCacheServiceInstance

規劃與使用分散式快取服務Planning and using the Distributed Cache service