---
schema_version: "1"
id: 85f781065bb469f816d409a0a9da4358b78985e1235691db9ec70a63058b3f68
title: 在分散式環境中的 Google 雲端平台上自行部署 Tableau Server
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server-linux/ts_gcp_multiple_server.md
canonical_url: https://help.tableau.com/v0.0/server-linux/zh-tw/ts_gcp_multiple_server.htm
source_site: help.tableau.com
content_type: documentation
content_hash: bceed769bc024fa44f70c7bbf942154520bd5894608ee1fe3149c628c6ab3ecf
description: 我們會繼續支援共用雲端部署，但不再更新協力廠商共用雲端部署的內容。
---
[跳至主要內容](#main-content)

# 在分散式環境中的 Google 雲端平台上自行部署 Tableau Server

## 這是封存內容

我們會繼續支援共用雲端部署，但不再更新協力廠商共用雲端部署的內容。

有關最新的 Tableau Server 部署內容，請參閱 Tableau Server 說明中的[部署](https://help.tableau.com/current/server-linux/zh-tw/install.htm) 部分。

對於有存取權的客戶，我們建議使用 Tableau Cloud。有關更多詳細資訊，請參閱：

- [Tableau Cloud 手動移轉指南](https://help.tableau.com/current/guides/migration/zh-tw/emg_intro.htm)
- [Tableau Cloud 管理員試用版](https://help.tableau.com/current/server-linux/zh-tw/install.htm)
- [Tableau Cloud：管理員入門](https://www.tableau.com/zh-tw/learn/get-started/online-admin)

## 簡介

您可以在分散式環境的兩個虛擬機器 (VM) 上執行 Tableau Server，這也稱為叢集。不過，如果要在高可用 (HA) 分散式環境中執行 Tableau Server，您需要啟動三個或更多個相同類型和容量的 Google Compute Engine (GCE) 虛擬機器 (VM)，並將其設定為額外節點。此情況假設您有三個 Google 計算引擎 VM，每個執行個體上都安裝了 Tableau Server。一個執行個體被設定為初始節點，另外兩個執行個體被設定為附加節點。

以下步驟顯示如何在高可用性和高可擴展性設定中的三個 Google 計算引擎 VM 的集群上安裝和部署 Tableau Server。

## 步驟 1：建立 Google 雲端平台虛擬私有雲端 (VPC)

您必須有一個現有 Google 雲端平台自訂模式虛擬私有雲端 (VPC)，帶有跨三個不同區域的私有和公共子網。有關如何規劃和建立帶自訂子網的自訂模式 VPC 網路的資訊，請參閱 Google 網站上的[使用 VPC 網路](https://cloud.google.com/vpc/docs/using-vpc)。

![三個可用區域的圖表。](/tableau/next/zh-tw/server-linux/zh-tw/Img/ts_gcp_three_zone.png)

## 第 1 步：建立符合 HIPAA 的 Google Cloud Platform 的專案

參考[設定 符合 HIPAA 的 Google Cloud Platform 專案](https://cloud.google.com/solutions/setting-up-a-hipaa-aligned-project)教學，並依靠 Cloud Healthcare Data Protection 工具組，該架構透過將設定視為程式碼，幫助您短短幾步驟建立 Google 雲端的基礎架構。下圖說明了該架構如何使用可重新使用的組件：Google Cloud Cloud Deployment Manager 組態指令碼和參數化的組態範本。

![三個可用區域的圖表。](/tableau/next/zh-tw/server-linux/zh-tw/Img/ts_gcp_three_zone.png)

## 步驟 2：部署三個 Google 計算引擎 VM

在私有子網中部署相同類型和容量的三個 Google 計算引擎虛擬機器 (VM)，將每個 VM 都放在其自己的區域中。選取符合 Tableau Server [系統要求](https://help.tableau.com/v0.0/server-linux/zh-tw/ts_gcp_virtual_machine_selection.htm)的 VM。您將在每個 Google 計算引擎 VM 上安裝 Tableau Server，並將一個節點用作初始節點，將其他兩個節點用作附加節點。

有關在分散式 Linux 環境中安裝 Tableau Server 詳情，請參閱[分散式和高可用性 Tableau Server 安裝](https://help.tableau.com/v0.0/server-linux/zh-tw/distrib_ha.htm)以及[安裝和設定附加節點](https://help.tableau.com/v0.0/server-linux/zh-tw/install_additional_nodes.htm)。

![包含三個主要區域的架構圖。](/tableau/next/zh-tw/server-linux/zh-tw/Img/ts_gcp_three_zone_primary_worker.png)

## 步驟 5：為 Tableau Server 叢集建立一個 Google 雲端平台負載平衡器

閱讀 Google 網站上的[設定負載平衡器](https://cloud.google.com/iap/docs/load-balancer-howto)，並按照步驟進行操作，在您的 Google 雲端平台虛擬私有雲端 (VPC) 內啟動負載平衡器。

1. 建立和啟動面向 Internet 的負載平衡器或內部可存取的負載平衡器：
    
    - 若要啟動面向 Internet 的公共負載平衡器，請按照 Google 網站上的[設定 HTTP(S) 負載平衡器](https://cloud.google.com/compute/docs/load-balancing/http/)中的步驟進行操作，並選取兩個公共子網。確保使用 SSL 設定負載平衡器，如 Google 網站上的 [SSL 憑證](https://cloud.google.com/compute/docs/load-balancing/http/ssl-certificates)中所述。
    - 若要啟動內部可存取的負載平衡器，請按照 Google 網站上的[設定內部負載平衡器](https://cloud.google.com/compute/docs/load-balancing/internal/)中的步驟進行操作，並選取兩個私有子網。
2. 確保您的 VPC 網路防火牆規則設定為僅允許在埠 80 或 443 上存取，並且來源限制為將存取 Tableau Server 的主機或一系列主機。有關防火牆規則詳情，請參閱 Google 網站上的[防火牆規則概觀](https://cloud.google.com/vpc/docs/firewalls)。
3. 將 ping 路徑指定為 /。
4. 選取 Tableau Server 執行個體，並按照 Google 網站上的[建立跨區域負載平衡](https://cloud.google.com/compute/docs/load-balancing/http/cross-region-example)中的說明進行操作，以便負載平衡器可跨多個區域中的執行個體對流量進行平衡。
5. 更新 Tableau Server 以使用負載平衡器。有關詳情，請參閱 Tableau Server 說明中的[新增負載平衡器](https://help.tableau.com/v0.0/server-linux/zh-tw/distrib_lb.htm)。