---
schema_version: "1"
id: f09a1a91accf55195caa298944ecbdc1ad5b97ef7379a2e691d08fb460bd67e7
title: 添加负载平衡器
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/distrib_lb.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/distrib_lb.htm
source_site: help.tableau.com
content_type: documentation
content_hash: c6ff52e1412d6f1649b27dac02b2734e7ed4453413161e2ae72299fa9069bfb0
description: Add a load balancer to distribute requests across multiple Tableau Server gateways.
---
[跳转到主要内容](#main-content)

# 添加负载平衡器

可以通过在多个节点上运行网关并配置负载平衡器在网关之间分配请求，从而提高 Tableau Server 的可靠性。与可以处于主动或被动状态的存储库进程不同，所有网关进程都必须处于主动状态。如果群集中的一个网关变得不可用，负载平衡器将停止向其发送请求。您选择的负载平衡器算法决定网关路由客户端请求的方式。

- **Kerberos**：如果您将使用 Kerberos 身份验证，则在将 Tableau Server 配置为使用 Kerberos 之前，必须针对负载平衡器配置 Tableau Server。有关详细信息，请参见[配置 Kerberos](https://help.tableau.com/current/server-linux/zh-cn/config_kerberos.htm)。
- **已测试负载平衡器**：具有多个网关的 Tableau Server 群集已使用 Apache 和 F5 负载平衡器进行了测试。
    
    如果使用 Apache 负载平衡器并且创建自定义管理视图，则需要直接连接到 Tableau Server 存储库。不能通过负载平衡器进行连接。
- **Tableau Server URL**：当负载平衡器位于 Tableau Server 群集前端时，Tableau Server 用户所访问的 URL 将属于负载平衡器而不是初始 Tableau Server 节点。
- **单一负载均衡器端点**：必须为单一 URL 端点配置负载均衡器。不能配置不同的端点主机以重定向到同一 Tableau Server 部署。单一外部 URL 是在配置 Tableau Server 时在 `gateway.public.host` 中定义的，如[为 Tableau Server 配置代理和负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/proxy.htm)中所述。
- **受信任主机设置**：必须将运行负载平衡器的计算机作为受信任主机向 Tableau Server 标识，如[为 Tableau Server 配置代理和负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/proxy.htm)中所述。

## 配置 Tableau Server 以使用负载平衡器

用于向 Tableau Server 标识负载平衡器的设置与用于标识反向代理服务器的设置相同。如果 Tableau Server 群集需要代理服务器和负载平衡器，那么二者都必须使用 `gateway.public.host` 中定义的单一外部 URL，并且必须在 `gateway.trusted` 和 `gateway.trusted_hosts` 中指定所有代理服务器和负载平衡器。请参见[为 Tableau Server 配置代理和负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/proxy.htm)。