Score:0

How to disable geo loadbalancing in Google Cloud Load Balancer (non-Classic) HTTPS?

my flag
A X

We are using GCP load balancer non-Classic HTTPS. We have two instance groups, one in Central and one in East. Right now it is sending all incoming traffic to only the nearest instance group. We actually want to turn off geo loadbalancing and just round-robbin the traffic across ALL instance groups.

How do we actually do that? This is not obvious from UI and documentation

Gari Singh avatar
cn flag
Is there a reason you want to do this? While the Global LB prefers to route to the closest region to the client, it will also route to the next (nearest) region if there is no capacity in the nearest region. Have a look at https://cloud.google.com/load-balancing/docs/backend-service#target-capacity
A X avatar
my flag
A X
@GariSingh Yeah this is basic. Azure Front Door, for example, can do this. This is yet another example of a non-obvious limitation in GCP that matters
Gari Singh avatar
cn flag
Could you point me to how you'd do this with Azure Front Door? I don't see how you'd do this there either.
Score:1
qa flag

There is a workaround available for this issue. You need to recreate a new load balancer for your instance group and need to reconfigure it with your desired functionalities (round robin algorithm in your case). However if you are trying to edit your existing load balancer’s config as of now there is no way, there is a similar issue and a feature request has been raised with google team for it for more updates.

A X avatar
my flag
A X
Thanks - I am happy to create a new one. Which screen do I select "Round Robin" in? I tried searching around and didn't see it in the create flow but maybe I just missed it
Kranthiveer Dontineni avatar
qa flag
In GCP each type of load balancer by default supports a particular algorithm for more information go through [load balancing methods](https://cloud.google.com/load-balancing/docs/features#load_balancing_methods) documentation.
A X avatar
my flag
A X
Thanks - OK I am looking at the screen for a new HTTPS Load Balancer Backend Configuration. There is a setting in Advanced called "Locality load balancing policy*". The default choice is Round Robin. However, there is no choice to NOT do locality load balancing at all and just do a pure Round Robin. Am I missing something? They all seem to be Locality Aware? I think this just sets what to use within a locality, but I want to configure how it decides which locality.
Kranthiveer Dontineni avatar
qa flag
If you are okay with using multiple load balancers, you can create an external load balancer and redirect the traffic to a regional LB for performing your round robin operations.
A X avatar
my flag
A X
Thanks - wouldn't that still geo-route to the closest region though?
Kranthiveer Dontineni avatar
qa flag
No you can use path based routing like for "EU" specify one path and for "US" specify one path eg: eu.example.com and us.example.com.
A X avatar
my flag
A X
But I don't want to do that. I just want it to round robin across all regions. Btw Azure front door can do this - it's pretty standard.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.