通过 Cloud Load Balancing,您可以将资源置于可从外部访问的单一 IP 地址后面,也可以将资源置于 Virtual Private Cloud (VPC) 网络内部的单一 IP 地址后面。了解详情
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
培训
培训和教程
了解如何创建应用负载均衡器,以将流量转发到自定义网址映射。
培训
培训和教程
外部应用负载均衡器
了解如何设置外部应用负载均衡器,以及负载均衡如何帮助您在 Compute Engine 上扩缩应用。
培训
培训和教程
使用 Cloud Armor 的外部应用负载均衡器
了解如何使用全球后端配置外部应用负载均衡器、如何对负载均衡器进行压力测试,以及如何通过 Cloud Armor 将压力测试 IP 地址列入拒绝名单。
培训
培训和教程
网络负载均衡器
了解网络负载均衡器和应用负载均衡器之间的区别,并了解如何为 Compute Engine 虚拟机上运行的应用设置这两种负载均衡器。
培训
培训和教程
内部直通式网络负载均衡器
了解如何配置和测试将实例组作为后端的内部负载均衡器。
培训
培训和教程
Google Cloud 网络 101
在 Google Cloud 上设置负载均衡应用。
培训
培训和教程
有关在 Compute Engine 上托管 Web 应用的实操实验
在本实验中,您将部署一个示例应用,即“Fancy Store”电子商务网站,演示如何使用 Compute Engine 轻松部署和扩缩网站。
使用场景
使用场景
请求路由到多区域外部应用负载均衡器
了解如何创建应用负载均衡器,该负载均衡器根据请求网址路径选择后端服务,然后将请求路由到靠近客户端的后端。
多区域
负载均衡
使用场景
使用场景
将 UDP 与网络负载均衡器搭配使用
了解如何使用网络负载均衡器处理用户数据报协议 (UDP) 流量。
UDP
负载均衡
使用场景
使用场景
了解将 Cloud CDN 和 Google Cloud Armor 添加到现有外部应用负载均衡器部署的价值。
CDN
Cloud Armor
负载均衡
使用场景
使用场景
通过同一已发布网域传送 HTTP 和 HTTPS 内容
将预留的 IP 地址绑定到外部应用负载均衡器中的 HTTP 和 HTTPS 前端配置。
CDN
负载均衡
使用场景
使用场景
通过负载平衡优化应用延迟
了解您在 Google Cloud 上选择的特定负载均衡器对端到端延迟时间有何影响。
延迟时间
负载均衡
使用场景
使用场景
为高可用性应用使用负载平衡功能
将负载平衡功能与区域级代管式实例组结合使用,以便将流量从繁忙或不可用的虚拟机实例重定向到其他位置,让您即使在可用区发生服务中断时也能确保高可用性。
限制传入流量
负载均衡
代码示例
代码示例
全球外部应用负载均衡器
使用 Terraform 创建外部应用负载均衡器。
代码示例
代码示例
外部直通式网络负载均衡器
使用 Terraform 创建外部直通网络负载均衡器。
代码示例
代码示例
内部直通式网络负载均衡器
使用 Terraform 创建内部直通网络负载均衡器。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-20。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-20。"],[],[],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--------------"]]