服务器场中的分布式缓存主机数超过了推荐的值 (SharePoint Server)

适用于:yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

规则名称:服务器场中的分布式缓存主机数量超过建议值。

摘要: 在具有四个或更多服务器的服务器场中,不能在服务器场中的所有服务器上启动分布式缓存服务。 只可以在配置为 SharePoint Server 2016 MInRole 中分布式缓存角色的服务器上运行分布式缓存。 如果将所有服务器均配置为缓存主机,可能会在服务器场中遇到可靠性和性能问题。 有关详细信息,请参阅 SharePoint Server 2016 中的 MinRole 服务器角色概述

原因:分布式缓存服务在该服务器场中的所有服务器上启动。

解决方案:使用 Windows PowerShell 减少缓存主机数量。

  1. 确认您具有以下成员身份:
  • SQL Server 实例上的 securityadmin 固定服务器角色。

  • 要更新的所有数据库上的 db_owner 固定数据库角色。

  • 运行 Microsoft PowerShell cmdlet 的服务器上的管理员组。

  • Farm Administrators 组。

    管理员可以使用 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

规划和使用分布式缓存服务