Cloud Load Balancing 說明文件
Cloud Load Balancing 可讓您透過單一 IP 位址掌控資源,該位址可從外部存取,也可在虛擬私有雲 (VPC) 網路內部存取。瞭解詳情
使用價值 $300 美元的免費抵免額,開始進行概念驗證
-
取得 Gemini 2.0 Flash Thinking 的存取權
-
每月免費使用 AI API 和 BigQuery 等熱門產品
-
不會自動收費,也不會要求您一定要購買特定方案
繼續探索超過 20 項一律免費的產品
使用超過 20 項實用的免費產品,包括 AI API、VM 和 data warehouse 等。
訓練
訓練與教學課程
瞭解如何建立應用程式負載平衡器,將流量轉送至自訂網址對應目標。
訓練
訓練與教學課程
外部應用程式負載平衡器
瞭解如何設定外部應用程式負載平衡器,以及負載平衡如何協助您在 Compute Engine 上調整應用程式資源。
訓練
訓練與教學課程
將外部應用程式負載平衡器與 Cloud Armor 搭配使用
瞭解如何設定具有全域後端的外部應用程式負載平衡器、對負載平衡器進行壓力測試,以及透過 Cloud Armor 建立壓力測試 IP 位址拒絕清單。
訓練
訓練與教學課程
網路負載平衡器
瞭解網路負載平衡器和應用程式負載平衡器之間的差異,以及如何為在 Compute Engine 虛擬機器上執行的應用程式設定這些負載平衡器。
訓練
訓練與教學課程
內部直通式網路負載平衡器
瞭解如何設定及測試內部負載平衡器,並將執行個體群組設為後端。
訓練
訓練與教學課程
Google Cloud 網路基本概念
在 Google Cloud 上設定負載平衡應用程式。
訓練
訓練與教學課程
在 Compute Engine 上託管網頁應用程式的實作實驗室
在本實驗室中,您要部署一個簡易的應用程式,即「Fancy Store」電子商務網站,藉此瞭解如何使用 Compute Engine 輕鬆部署網站及調度資源。
用途
用途
將要求轉送至多地區外部應用程式負載平衡器
瞭解如何建立應用程式負載平衡器,根據要求網址路徑選取後端服務,然後將要求轉送至靠近用戶端的後端。
多區域
負載平衡
用途
用途
搭配網路負載平衡器使用 UDP
瞭解如何使用網路負載平衡器處理使用者資料包通訊協定 (UDP) 流量。
UDP
負載平衡
用途
用途
瞭解在現有外部應用程式負載平衡器部署作業中新增 Cloud CDN 和 Google Cloud Armor 的價值。
CDN
Cloud Armor
負載平衡
用途
用途
透過相同的已發布網域傳遞 HTTP 和 HTTPS 內容
將保留的 IP 位址繫結至外部應用程式負載平衡器中的 HTTP 和 HTTPS 前端設定。
CDN
負載平衡
用途
用途
透過負載平衡改善應用程式延遲
瞭解您所選擇的特定 Google Cloud 負載平衡器對於端對端延遲的影響。
延遲
負載平衡
用途
用途
針對高可用性應用程式使用負載平衡功能
在地區代管執行個體群組上使用負載平衡功能,以重新導向流量,使流量避開繁忙或無法使用的 VM 執行個體。如此一來,即使區域服務中斷,您還是能確保應用程式的高可用性。
限制連入流量
負載平衡
程式碼範例
程式碼範例
全域外部應用程式負載平衡器
使用 Terraform 建立外部應用程式負載平衡器。
程式碼範例
程式碼範例
外部直通式網路負載平衡器
使用 Terraform 建立外部直通式網路負載平衡器。
程式碼範例
程式碼範例
內部直通式網路負載平衡器
使用 Terraform 建立內部直通式網路負載平衡器。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Cloud Load Balancing documentation\n==================================\n\n[Read product documentation](/load-balancing/docs/load-balancing-overview)\nCloud Load Balancing allows you to put your resources behind a single IP address\nthat is externally accessible or internal to your Virtual Private Cloud (VPC) network.\n[Learn more](/load-balancing/docs/load-balancing-overview)\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nspoke\n\n### Load balancer types\n\n-\n\n [Choose a load balancer](/load-balancing/docs/choosing-load-balancer)\n\n-\n\n [External Application Load Balancer](/load-balancing/docs/https)\n\n-\n\n [Internal Application Load Balancer](/load-balancing/docs/l7-internal)\n\n-\n\n [External passthrough Network Load Balancer](/load-balancing/docs/network)\n\n-\n\n [Internal passthrough Network Load Balancer](/load-balancing/docs/internal)\n\n-\n\n [External proxy Network Load Balancer](/load-balancing/docs/tcp)\n\n-\n\n [Internal proxy Network Load Balancer](/load-balancing/docs/tcp/internal-proxy)\n\nsettings\n\n### Customize load balancers\n\n-\n\n [Backend services](/load-balancing/docs/backend-service)\n\n-\n\n [Forwarding rules](/load-balancing/docs/forwarding-rule-concepts)\n\n-\n\n [Health checks](/load-balancing/docs/health-check-concepts)\n\n-\n\n [Network endpoint groups](/load-balancing/docs/negs)\n\n-\n\n [SSL certificates](/load-balancing/docs/ssl-certificates)\n\n-\n\n [SSL policies](/load-balancing/docs/ssl-policies-concepts)\n\n-\n\n [Target pools](/load-balancing/docs/target-pools)\n\n-\n\n [Target proxies](/load-balancing/docs/target-proxies)\n\n-\n\n [URL maps](/load-balancing/docs/url-map-concepts)\n\ngroup_work\n\n### References and resources\n\n-\n\n [Load balancer features](/load-balancing/docs/features)\n\n-\n\n [API and gcloud references](/load-balancing/docs/apis)\n\n-\n\n [Pricing](/vpc/network-pricing#lb)\n\n-\n\n [Quotas and limits](/load-balancing/docs/quotas)\n\n-\n\n [Release notes](/load-balancing/docs/release-notes)\n\n-\n\n [Billing questions](/load-balancing/docs/billing-questions)\n\n-\n\n [Getting support](/load-balancing/docs/getting-support)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Application Load Balancer with Terraform\n\n\nLearn how to create an Application Load Balancer to forward traffic to a custom URL map.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/1206?parent=catalog) \nTraining \nTraining and tutorials\n\n### External Application Load Balancer\n\n\nLearn how to set up an external Application Load Balancer and how load balancing can help scale your applications on Compute Engine.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/12007?parent=catalog) \nTraining \nTraining and tutorials\n\n### External Application Load Balancer with Cloud Armor\n\n\nLearn how to configure an external Application Load Balancer with global backends, stress test the load balancer, and denylist the stress test IP address with Cloud Armor.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/1232?parent=catalog) \nTraining \nTraining and tutorials\n\n### Network Load Balancer\n\n\nLearn the differences between Network Load Balancers and Application Load Balancers and how to set them up for your applications running on Compute Engine virtual machines.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/12007?parent=catalog) \nTraining \nTraining and tutorials\n\n### Internal passthrough Network Load Balancer\n\n\nLearn how to configure and test an internal load balancer with instance groups as backends.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/1250?parent=catalog) \nTraining \nTraining and tutorials\n\n### Google Cloud networking 101\n\n\nSet up a load balanced application on Google Cloud.\n\n\n[Learn more](https://www.cloudskillsboost.google/catalog_lab/311) \nTraining \nTraining and tutorials\n\n### Hands on lab for hosting a web app on Compute Engine\n\n\nIn this lab you will deploy a sample application, the \"Fancy Store\" ecommerce website, to show how a website can be deployed and scaled easily with Compute Engine.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/11952?parent=catalog) \nUse case \nUse cases\n\n### Request routing to a multi-region external Application Load Balancer\n\n\nLearn how to create an Application Load Balancer that selects backend services based on request URL paths, and then routes requests to backends that are close to the clients.\n\nmulti-region load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/load-balancing/docs/https/setting-up-https) \nUse case \nUse cases\n\n### Use UDP with Network Load Balancers\n\n\nLearn how to handle User Datagram Protocol (UDP) traffic with a Network Load Balancer.\n\nUDP load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/load-balancing/docs/network/udp-with-network-load-balancing) \nUse case \nUse cases\n\n### Faster web performance and improved web protection for load balancing\n\n\nLearn the value of adding Cloud CDN and Google Cloud Armor to an existing external Application Load Balancer deployment.\n\nCDN Cloud Armor load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/load-balancing/docs/tutorials/faster-performance-improved-protection) \nUse case \nUse cases\n\n### Delivering HTTP and HTTPS content over the same published domain\n\n\nBind a reserved IP address to both the HTTP and HTTPS frontend configuration in the external Application Load Balancer.\n\nCDN load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/load-balancing/docs/tutorials/http-https-over-same-domain) \nUse case \nUse cases\n\n### Optimizing application latency with load balancing\n\n\nLearn how your choice of a specific load balancer on Google Cloud affects end-to-end latency.\n\nlatency load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/load-balancing/docs/tutorials/optimize-app-latency) \nUse case \nUse cases\n\n### Using load balancing for highly available applications\n\n\nUse load balancing with a regional managed instance group to redirect traffic away from busy or unavailable VM instances, allowing you to provide high availability even during a zonal outage.\n\nrestricting incoming traffic load balancing\n\n\u003cbr /\u003e\n\n[Learn more](/compute/docs/tutorials/high-availability-load-balancing) \nCode sample \nCode Samples\n\n### Global external Application Load Balancer\n\n\nCreate an external Application Load Balancer by using Terraform.\n\n\n[Open GitHub\narrow_forward](https://github.com/terraform-google-modules/terraform-google-lb-http) \nCode sample \nCode Samples\n\n### External passthrough Network Load Balancer\n\n\nCreate an external passthrough Network Load Balancer by using Terraform.\n\n\n[Open GitHub\narrow_forward](https://github.com/terraform-google-modules/terraform-google-lb) \nCode sample \nCode Samples\n\n### Internal passthrough Network Load Balancer\n\n\nCreate an internal passthrough Network Load Balancer by using Terraform.\n\n\n[Open GitHub\narrow_forward](https://github.com/terraform-google-modules/terraform-google-lb-internal)\n\nRelated videos\n--------------"]]