Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

So the load balancer might link to a Google Cloud instance but also an external server.

like image 205
Stewart Megaw Avatar asked Apr 26 '17 09:04

Stewart Megaw


1 Answers

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. 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 i.e. 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.

like image 135
Yadvendar Avatar answered Oct 23 '22 15:10

Yadvendar