内容:

部署协调服务整体

  • 版本 :2022.1 及更高版本

协调处建立在协调处的基础上阿帕奇动物园管理员(链接将在新窗口中打开),一个开源项目,并协调服务器上的活动,在发生故障时保证仲裁,并作为有关服务器拓扑、配置和状态的“真相”来源。该服务会自动安装在初始 Tableau Server 节点上,但在添加其他节点时不会安装其他实例。由于 Tableau Server 能否成功运行取决于正常运行的协调服务,因此对于包含三个或更多节点的服务器安装,您可以通过部署新的协调服务整体来添加协调服务的其他实例。这提供了冗余,并在协调服务的一个实例出现问题时提高了可用性。

重要:从版本 2020.1.0 开始,部署协调服务整体的过程已更改。如果您运行的是早期版本的 Tableau Server,请参阅该版本的文档。您可以在此处找到所有受支持版本的文档:Tableau 帮助(链接将在新窗口中打开)

硬件要求

用于 Tableau Server 的硬件会影响协调服务的运行情况。特别:

  • 内存。协调服务在内存中维护状态信息。根据设计,内存占用空间很小,并且通常不是影响服务器整体性能的一个因素。

  • 磁盘速度。由于该服务将状态信息存储在磁盘上,因此它受益于各个节点计算机上的快速磁盘速度。

  • 节点之间的连接速度。该服务在群集节点之间持续通信;节点之间的快速连接速度有助于实现高效同步。

由于协调服务是 I/O 密集型的,因此,如果您在满足或刚刚超过最低硬件要求的计算机上运行 Tableau Server,则可能需要配置一个协调服务整体,该协调服务整体将服务放在未用于其他服务器进程的节点上。这减少了由于服务器进程之间的 I/O 争用而导致延迟的可能性。有关如何在专用的仅限协调服务的节点上部署整体的信息,请参阅使用仅协调服务节点配置 Tableau Server 以实现高可用性

协调服务仲裁

为了确保协调服务可以正常工作,该服务需要仲裁 - 服务的最小实例数。这意味着安装中的节点数会影响要在集成中配置的协调服务实例数。

要使用的协调服务实例数

在 Tableau Server 上,一个整体中可以拥有的最大协调服务实例数取决于您在部署中拥有的 Tableau Server 节点数。根据以下准则配置协调服务整体:

服务器节点总数集成中建议的协调服务节点数(必须为 1、3 或 5)笔记
1-2 个节点1 个节点这是默认设置,不需要进行任何更改,除非您要将协调服务从初始节点移动到其他节点上。
3-4 个节点3 个节点
5 个或更多节点3 个节点
或 5 个节点
五是可以安装的协调服务实例的最大数目。3 节点协调服务整体允许其中一个集成节点失败,而不会导致 Tableau Server 失败。5 节点融合允许其中两个融合节点失败,而不会导致 Tableau Server 失败。

对于大多数安装,三个协调服务节点就足够了,并且由于协调服务的 I/O 密集型性质,这是性能最高的配置。

如果高可用性是您的绝对优先事项,则可能需要考虑部署 5 节点协调服务整体。这在一个或多个节点发生故障但需要更多系统资源的情况下提供最大的冗余。最多两个集成节点可能会失败,而不会影响 Tableau Server(只要该节点上的任何其他服务也存在于仍在运行的节点上)。

若要减少对性能的影响,请在运行较少其他服务的节点上找到协调服务,或考虑使用仅协调服务的节点。有关详细信息,请参阅使用仅协调服务节点配置 Tableau Server 以实现高可用性

Deploy a new Coordination Service ensemble

If you install a total of three or more nodes, you should also deploy a Coordination Service ensemble. If you do not, you will get a warning message every time you make changes to the server configuration or topology. You can ignore this message, but as a best practice you should deploy a multi-node Coordination Service ensemble.

When you install Tableau Server, a single instance of the Coordination Service is installed on the initial node. TSM and Tableau Server depend on the Coordination Service to function properly, so to provide redundancy and ensure availability on multi-node installations, configure additional instances of the Coordination Service by deploying a Coordination Service ensemble. Coordination Service ensembles are installed with one, three, or five instances of the Coordination Service. In a three-node installation of Tableau Server, the recommended number of Coordination Service instances is three, one on each node.

Do not attempt to deploy a Coordination Service ensemble if there are other changes pending. Discard or apply any pending changes before deploying a new Coordination Service ensemble.

Note: This operation includes steps that you may need to perform using the TSM command line. To use the TSM CLI you need administrator access to the command line on one of the nodes in your installation and TSM administrator credentials to run TSM commands.

The following steps illustrate how to deploy a new Coordination Service ensemble on an existing three-node Tableau Server cluster and clean up the old ensemble.

  1. On the initial node, open a command prompt as administrator.

  2. Stop Tableau Server:

    tsm stop

    If prompted, sign in as a TSM administrator.

    Some TSM processes will continue to run, including the Administration Controller and Administration Agent.

  3. Confirm there are no pending changes:

    tsm pending-changes list

    If there are pending changes, you need to either discard the changes or apply them. Applying pending changes will take some time:

    Wait until the command completes and you are returned to the system prompt.

    • Discard the changes

      tsm pending-changes discard
    • or

    • Apply the changes:

      tsm pending-changes apply
  4. 获取群集中每个节点的节点 ID:

    tsm topology list-nodes -v

  5. 使用该命令通过将协调服务添加到指定的节点来添加新的协调服务整体。必须指定应将协调服务添加到的节点。该命令还会使新融合成为“生产”整体(正在使用的融合)并删除旧融合,除非部署失败。如果发生这种情况,请参阅下面的步骤 6。tsm topology deploy-coordination-service

    注意:将显示“y/n”提示,确认将重新启动服务器。若要在不输入的情况下运行命令,请包含该选项。--ignore-prompt

    例如,将协调服务部署到三节点群集的所有三个节点,其中节点分别为节点 1、节点 2 和节点 3:

    tsm topology deploy-coordination-service -n node1,node2,node3

    等待命令完成,然后返回到系统提示符。

  6. (可选)如果部署失败,则需要运行命令以删除未成功部署的融合。有关运行该命令的详细信息,请参阅 tsm 拓扑清理-协调-服务tsm topology cleanup-coordination-service

  7. 启动 Tableau Server

    tsm start

返回页首