Lync Server 2013 中的前端服务器、即时消息和状态的拓扑和组件Topologies and components for Front End Servers, instant messaging, and presence in Lync Server 2013

 

上次修改的主题: 2014-10-24Topic Last Modified: 2014-10-24

即时消息 (IM) 和状态所需的唯一组件是:The only components required for instant messaging (IM) and presence are:

  • 组织的前端服务器或 Standard Edition Server。这些服务器中始终启用 IM 和状态功能。Your organization’s Front End Servers or Standard Edition servers. IM and presence capabilities are always enabled on these servers.

  • 负载平衡器(如果有一个 Enterprise Edition 前端池)。A load balancer, if you have an Enterprise Edition Front End pool. 有关详细信息,请参阅 Lync Server 2013 的负载平衡要求For more information, see Load balancing requirements for Lync Server 2013.

规划部署前端池Planning for the Deployment of Front End Pools

在 Lync Server 2013 中,前端池体系结构已更改,这些更改将影响您应如何规划和维护前端池。In Lync Server 2013, Front End pool architecture has changed, and these changes affect how you should plan and maintain your Front End pools.

我们建议您的所有 Enterprise Edition 前端池至少包含三台前端服务器。We recommend that all your Enterprise Edition Front End pools include at least three Front End Servers. 在 Lync Server 中,前端池的体系结构使用分布式系统模型,每个用户的数据都保存在池中的三台前端服务器上。In Lync Server, the architecture of Front End pools uses a distributed systems model, with each user’s data kept on three Front End servers in the pool. 有关此新体系结构的详细信息,请参阅 Lync Server 2013 中的拓扑更改For more information about this new architecture, see Topology changes in Lync Server 2013.

如果您不想部署三个 Enterprise Edition 前端服务器并希望进行灾难恢复,我们建议使用 Lync Server Standard Edition 并创建具有配对备份关系的两个池。If you do not want to deploy three Enterprise Edition Front End Servers and want disaster recovery, we recommend you use Lync Server Standard Edition and create two pools with a paired backup relationship. 这将提供仅包含两台服务器的灾难恢复解决方案。This will provide a disaster recovery solution with only two servers. 有关详细信息,请参阅高可用性和灾难恢复拓扑和功能,请参阅在 Lync Server 2013 中规划高可用性和灾难恢复For more information, on high availability and disaster recovery topologies and features, see Planning for high availability and disaster recovery in Lync Server 2013.

规划管理前端池Planning for the Management of Front End Pools

对于前端池,请遵循本节中的指南。For Front End pools, follow the guidelines in this section.

确保池正常运行Ensuring That Pools are Functional

使用新的分布式模型进行前端池时,池服务器的某些号码必须运行,池才能正常工作。With the new distributed model for Front End pools, certain numbers of a pool’s servers must be running for the pool to function. 池有两个丢失模式There are two loss modes for a pool

  • 路由组级别仲裁丢失,因特定路由组的副本服务器不足而导致。Routing Group Level quorum loss, caused by not enough replica servers for a particular routing group. 路由组是驻留在池中的一组用户的聚合。A routing group is an aggregation of a set of users homed in the pool. 每个路由组在池中都有三个副本:一个主副本和两个辅助副本。Each routing group has three replicas in the pool: one primary and two secondaries.

  • 池级别仲裁丢失,在池中没有足够的种子服务器运行时导致。Pool Level quorum loss, caused when not enough seed servers are running in the pool.

路由组级别仲裁丢失Routing Group Level quorum loss

首次启动新的前端池时,有85% 的服务器已启动并且正在运行,这一点非常重要,如下表所示。The first time you start a new Front End pool, it is essential that 85% of the servers are up and running, as shown in the following table. 如果运行较少的服务器,服务可能会处于 "启动" 状态,并且池可能无法启动。If fewer servers are running, the services might be stuck in the starting state and the pool might not start.

池中的服务器总数Total number of servers in the pool 在首次启动池时必须运行的服务器的数量Number of servers that must be running for the pool to be started the first time

双面2

11

第三章3

第三章3

4 4

第三章3

5 5

4 4

6 6

5 5

7 7

5 5

8 8

6 6

9 9

7 7

10 10

8 8

11x1711

9 9

12 12

10 10

每次启动池时,应启动85% 的服务器 (,如上表中所示) 。Every subsequent time the pool is started, 85% of the servers should be started (as shown in the preceding table). 如果无法启动此数量的服务器 (但可以启动足够的服务器以使您不会处于池级别的仲裁丢失) ,则可以使用 ResetType QuorumLossRecovery cmdlet 使池能够从此路由组级别仲裁丢失恢复并进行操作。If this number of servers cannot be started (but enough servers can be started so that you are not at pool-level quorum loss), you can use the Reset-CsPoolRegistrarState –ResetType QuorumLossRecovery cmdlet to enable the pool to recover from this routing group level quorum loss and make progress. 有关如何使用此 cmdlet 的详细信息,请参阅 Reset-CsPoolRegistrarStateFor more information about how to use this cmdlet, see Reset-CsPoolRegistrarState.

备注

由于 Lync Server 使用主 SQL 数据库作为见证,如果关闭主数据库并切换到镜像副本,并且关闭了足够的前端服务器,以便根据前面的表运行,则整个池将会停止运行。Because Lync Server uses the Primary SQL database as Witness, if you shut down the primary database and switch to the Mirror copy, and shut down enough Front End Servers so that not enough are running according to the preceding table, the entire pool will go down. 有关详细信息,请参阅 数据库镜像见证For more information, see Database Mirroring Witness.

池级别仲裁丢失Pool-level quorum loss

为了让前端池能够正常运行,它不能处于池级别仲裁丢失。For a Front End pool to function at all, it cannot be in pool-level quorum loss. 如果运行的服务器数低于功能级别,如下表所示,池中的其余服务器将停止所有 Lync Server 服务。If the number of servers running falls below the functional level as shown in the following table, the remaining servers in the pool will stop all Lync Server services. 请注意,下表中的数字假定池中的后端服务器正在运行。Note that the numbers in the following table assume that the Back End Servers in the pool are running.

池中的前端服务器总数Total number of Front End Servers in the pool 要使池正常工作所必须运行的服务器的数目Number of servers that must be running for pool to be functional

双面2

11

3-43-4

任意2Any 2

5-65-6

任意3Any 3

7 7

任意4Any 4

8-98-9

前7台服务器中的任意4个Any 4 of the first 7 servers

10-1210-12

前9个服务器中的任何5个Any 5 of the first 9 servers

在上表中,"第一台服务器" 是第一次启动池时的服务器。In the preceding table, the “first servers” are the servers which were brought up first, chronologically, when the pool was started for the first time. 若要确定这些服务器,可以结合使用 CsComputer cmdlet 和 – PoolFqdn 选项。To determine these servers, you can use the Get-CsComputer cmdlet with the –PoolFqdn option. 此 cmdlet 将按其在拓扑中出现的顺序显示服务器,列表顶部的服务器是第一台服务器。This cmdlet will show the servers in the order that they appear in the topology, and the ones at the top of the list are the first servers.

带有两个前端服务器的前端池Front End Pools with Two Front End Servers

建议不要部署仅包含两台前端服务器的前端池。如果您确实需要这样的池,请遵循以下指导原则:We do not recommend deploying a Front End pool that contains only two Front End Servers. If you do ever need to deploy such a pool, follow these guidelines:

  • 如果两个前端服务器之一停机,您应尝试将该失败的服务器尽快恢复运行。同样,如果需要升级两台服务器之一,升级完成后将其尽快联机。If one of the two Front End Servers goes down, you should try to bring the failed server back up as soon as you can. Similarly, if you need to upgrade one of the two servers, bring it back online as soon as the upgrade is finished.

  • 如果因某些原因需要将两台服务器同时停机,当该池停机后执行下列操作:If for some reason you need to bring both servers down at the same time, do the following when the downtime for the pool is finished:

    • 最佳做法是同时重新启动这两个前端服务器。The best practice is to restart both Front End Servers at the same time.

    • 如果无法同时重新启动两台服务器,则应该按其停机时的相反顺序来启动它们。If the two servers cannot be restarted at the same time, you should bring them back up in the reverse order of the order they went down.

    • 如果按此顺序无活使其启动,则在启动该池前使用以下 cmdlet:If you cannot bring them back up in that order, then use the following cmdlet before bringing the pool back up:.

      Reset-CsPoolRegistrarState -ResetType QuorumLossRecovery -PoolFQDN <FQDN>
      

确保池正常运行的其他步骤Additional Steps to Ensure Pools are Functional

您应观看几个其他因素,以确保前端池保持正常运行。You should watch for a couple of other factors to ensure that your Front End pools remain functional.

  • 当第一次将用户移动到池时,确保至少运行三个前端服务器。When you move users to the pool for the first time, be sure at least three of the Front End Servers are running.

  • 如果您为灾难恢复的目的建立此池和另一池之间的一对关系,那么在建立此关系后,必须确保在某些时候此池具有三个同时运行的前端服务器以正确将数据与备份池同步。If you establish a pairing relationship between this pool and another pool for disaster recovery purposes, then after establishing that relationship you must be sure this pool has three Front End Servers running simultaneously at some time to properly synchronize data with the backup pool. 有关池配对和灾难恢复功能的详细信息,请参阅 在 Lync Server 2013 中规划高可用性和灾难恢复For more information on pool pairing and disaster recovery features, see Planning for high availability and disaster recovery in Lync Server 2013.

改进池升级的可靠性Improving the Reliability of Pool Upgrades

当您需要升级或修补前端池中的服务器时,请遵循在 Lync Server 2013 中的升级或更新前端服务器中显示的工作流和以下指南:When you need to upgrade or patch the servers in a Front End pool, follow the workflow shown in Upgrade or update Front End Servers in Lync Server 2013, and the following guidelines:

  • 当您从一个升级域迁移到另一个升级域进行升级时 (在 升级或更新前端服务器的 Lync Server 2013) 中 ,请使用 CsPoolUpgradeReadinessState Cmdlet 并检查 "就绪" 状态。When you move from one upgrade domain to another for upgrades (following the workflow at Upgrade or update Front End Servers in Lync Server 2013), you will use the Get-CsPoolUpgradeReadinessState cmdlet and check for Ready state. 在每个升级域达到 "就绪" 时,在每个升级域之间添加20分钟等待可提高升级的可靠性。Adding a 20-minute wait between each upgrade domain after it reaches “Ready” will make the upgrades more reliable. 如果在此20分钟内 未准备就绪 ,请重新启动20分钟计时器。If it becomes Not Ready during this 20 minutes, restart the 20-minute timer. 此外,还可以在启动20分钟间隔之前和之后运行 CsPoolFabricState cmdlet,并确保不会对路由组的 primaries 和辅助映像进行任何更改。Also, you can run the Get-CsPoolFabricState cmdlet before and after starting the 20-minute interval and make sure there are no changes to the primaries and secondaries of routing groups.

  • 如果上一次修补的升级域中的任何服务器被卡住或没有重新启动,请不要移动到下一个升级域。Do not move on to the next upgrade domain if any of the servers in the last patched upgrade domain are stuck or not restarted. 如果升级中的任何服务器无法启动,也会应用此规则。This also applies if any of the servers within an upgrade cannot start. 运行 CsPoolFabricState 以确保所有路由组都有主和至少一个辅助数据库;这将确认是否所有用户都有服务。Run Get-CsPoolFabricState to make sure all of the routing groups have a primary and at least one secondary; this will confirm whether all users have service.

  • 如果某些用户具有服务,而其他用户没有,请运行 CsPoolFabricState 和– Verbose 选项,以检查包含丢失副本的路由组。If some users have service and others do not, run Get-CsPoolFabricState with the –Verbose option to check for routing groups that have missing replicas. 请勿将整个池重新启动为第一个故障排除步骤。Do not restart the entire pool as the first troubleshooting step. 有关此 cmdlet 的详细信息,请参阅 CsPoolFabricStateFor more information on this cmdlet, see Get-CsPoolFabricState.

  • 确保已关闭事件查看器或性能监视器窗口的所有实例,以供 windows fabric 安装/卸载。Make sure that all instances of the Event Viewer or Performance Monitor windows are closed for windows fabric installs/uninstalls.

更改前端池的配置Changing a Front End Pool’s Configuration

每当将前端服务器添加到池,或从池将其删除,然后发布新拓扑时,请遵循以下指导原则:Whenever you add Front End Servers to a pool, or remove them from the pool, and then publish the new topology, follow these guidelines:

  • 发布新拓扑后,必须重新启动池中的每台前端服务器。After the new topology has been published, you must restart each Front End Server in the pool. 一次重新启动一个。Restart them one at a time.

  • 如果在配置更改期间整个池已关闭,则在发布新拓扑后运行下列 cmdlet:If the entire pool has been down during the configuration change, then run the following cmdlet after the new topology is published:

    Reset-CsPoolRegistrarState -PoolFQDN <PoolFQDN> -ResetType ServiceReset
    

如果前端服务器失败,且在近期不可能替换,则从拓扑删除该服务器。当再次可用时向该拓扑添加新的前端服务器。If a Front End Server fails and is unlikely to be replaced for a few days or more, remove the server from the topology. Add the new Front End Server to the topology when it is available again.