最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google cloud platform - How Does GCP Global Application Load Balancer Select the Closest Backend? - Stack Overflow

programmeradmin1浏览0评论

I'm trying to understand how the Google Cloud Platform (GCP) Global Application Load Balancer works, especially in scenarios involving proximity-based backend selection.

Here is the setup:

I have two Managed Instance Groups (MIGs) hosting my application.

  • One MIG is in the APAC region.
  • The other is in the US region.

I'm accessing the application from India.

My understanding so far:

  • The load balancer has a single anycast IP address advertised across all Google Cloud Points of Presence (POPs).
  • My traffic would first enter the GCP network at the nearest POP (likely in APAC for India).
  • After entering the GCP network, the load balancer must decide which backend service (APAC or US) should handle the request.
  • I've read about the "Waterfall by Region" algorithm but am unsure which load balancer component runs this algorithm.

Questions:

  1. Which specific component or object of the load balancer is responsible for selecting the nearest backend?
  2. What is the role of the Google Front End (GFE) in this process? Does the GFE perform the proximity calculations and backend selection?

I would greatly appreciate any insights or explanations regarding how the Global Load Balancer determines the nearest backend when both backends are healthy and capable of serving traffic.

I'm trying to understand how the Google Cloud Platform (GCP) Global Application Load Balancer works, especially in scenarios involving proximity-based backend selection.

Here is the setup:

I have two Managed Instance Groups (MIGs) hosting my application.

  • One MIG is in the APAC region.
  • The other is in the US region.

I'm accessing the application from India.

My understanding so far:

  • The load balancer has a single anycast IP address advertised across all Google Cloud Points of Presence (POPs).
  • My traffic would first enter the GCP network at the nearest POP (likely in APAC for India).
  • After entering the GCP network, the load balancer must decide which backend service (APAC or US) should handle the request.
  • I've read about the "Waterfall by Region" algorithm but am unsure which load balancer component runs this algorithm.

Questions:

  1. Which specific component or object of the load balancer is responsible for selecting the nearest backend?
  2. What is the role of the Google Front End (GFE) in this process? Does the GFE perform the proximity calculations and backend selection?

I would greatly appreciate any insights or explanations regarding how the Global Load Balancer determines the nearest backend when both backends are healthy and capable of serving traffic.

Share Improve this question asked Nov 19, 2024 at 1:41 SachinSachin 691 gold badge2 silver badges12 bronze badges 1
  • I'm voting to close this question because it has nothing to do with programming. In particular these questions should be directed to the creator of it, Google instead os asking this in SO. – Puteri Commented Nov 19, 2024 at 3:37
Add a comment  | 

1 Answer 1

Reset to default 2

Their documentation says:

For backend services with instance groups, zonal NEGs with GCE_VM_IP_PORT endpoints, and hybrid NEGs, Google’s capacity management system informs first-layer GFEs about the used and configured capacity for each backend. The configured capacity for a backend is defined by the balancing mode, the target capacity of the balancing mode, and the capacity scaler.

Standard Tier: First-layer GFEs select a second layer GFE in the region containing the backends.

Premium Tier: First-layer GFEs select second-layer GFEs from a set of applicable regions. Applicable regions are all regions where backends have been configured, excluding those regions with configured backends having zero capacity. First-layer GFEs select the closest second-layer GFE in an applicable region (defined by network round-trip time). If backends are configured in two or more regions, first-layer GFEs can spill requests over to other applicable regions if a first-choice region is full. Spillover to other regions is possible when all backends in the first-choice region are at capacity.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论