简体   繁体   English

带有外部服务器的 Google 云负载平衡器

[英]Google cloud load balancer with external server

I want to know if it is possible link the Google Cloud load balancer to an external server - a server hosted outside of Google Cloud?我想知道是否可以将 Google Cloud 负载平衡器链接到外部服务器 - 托管在 Google Cloud 之外的服务器?

So the load balancer might link to a Google Cloud instance but also an external server.因此,负载平衡器可能会链接到 GCP 实例,但也会链接到外部服务器。

Not by attaching directly to the load balancer but you can add a backend service consisting of an auto scalable instance group hosted on google cloud which will proxy the incoming traffic to the external server. 不是直接附加到负载均衡器,而是可以添加后端服务,该服务由托管在Google云上的自动可扩展实例组组成,该实体组将传入的流量代理到外部服务器。 This will result in the overhead of billing and maintenance of such an auto-scalable group of instances. 这将导致计费和维护这种可自动扩展的实例组的开销。 Hence, depending on the volume of traffic you are handling another approach can be to route traffic via existing backend service ie configure the servers running in your existing backend service by adding appropriate conditions(path based routing etc.) and proxy to the external server instead of relying on Google HTTP Load Balancer to perform the path based routing part. 因此,根据您正在处理的流量,另一种方法可以是通过现有后端服务路由流量,即通过向外部服务器添加适当的条件(基于路径的路由等)和代理来配置在现有后端服务中运行的服务器依赖Google HTTP Load Balancer来执行基于路径的路由部分。

In 2021, you can use an Internet network endpoint group backend with Internet Network Endpoint Group (External backends): https://cloud.google.com/load-balancing/docs/negs/internet-neg-concepts 2021 年,您可以将 Internet 网络端点组后端与 Internet 网络端点组(外部后端)一起使用: https : //cloud.google.com/load-balancing/docs/negs/internet-neg-concepts

See also https://cloud.google.com/load-balancing/docs/https/setting-up-https-external-backend-internet-neg另请参阅https://cloud.google.com/load-balancing/docs/https/setting-up-https-external-backend-internet-neg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM