Load balancing Google Cloud VMware Engine with Traffic Director

The real value here is not simply โ€œmore load balancing,โ€ but a control-plane pattern that lets VMware Engine workloads be fronted by Google Cloud services without forcing a wholesale redesign of the application tier. Traffic Director centralizes policy, while Envoy and hybrid network endpoint groups expose GCVE backends to native load balancers. That matters because practitioners get a managed path to scale web services, attach security and delivery features, and preserve operational continuity during migration, rather than stitching together ad hoc networking exceptions.

Technically, the architecture hinges on how traffic reaches the Envoy dataplane. In the external case, an HTTP(S) load balancer forwards requests to Traffic Director-managed proxies; backend endpoints can be explicit VM IP and port pairs, or hidden behind an NSX Tier-1 load balancer with routes exported through VPC peering. The internal variant swaps only the front-end load balancer. This separation is useful operationally because it keeps traffic policy in one place while still supporting private addressing, VIP exposure, and protocol-specific choices.

The tradeoff is added architectural choice, which is often where implementation fails in practice. L4 mode has documented restrictions, including a single backend service per target proxy, and the NSX load balancer path introduces another layer that can obscure failure domains if it is not designed carefully. The briefโ€™s benefitsโ€”global reach, Cloud Armor, CDN, BYOIP, certificate lifecycle managementโ€”are meaningful, but they are conditional on the exact load-balancer combination and backend exposure model. Practitioners should treat the pattern as powerful, not automatic.


The following solution brief discusses a GCVE + Traffic Director implementation aimed at providing customers an easy way to scale out web services, while enabling application migrations to Google Cloud. The solution is built on top of a flexibleandopen architecture that exemplifies the unique capabilities of Google Cloud Platform. Letโ€™s elaborate: Easy: The full configuration takes minutes to implement and can be scripted or defined with Infrastructure-as-Code (IaC) for rapid consumption and minimal errors. Flexible and open: The solution relies on Envoy, an open source platform that enjoys tremendous popularity with the network and application communities. The availability of Google Cloud VMware Engine (GCVE) has given GCP customers the ability to deploy Cloud applications on a certified VMware stack that is managed, supported and maintained by Google. Many of these customers also demand seamless integration between their applications running on GCVE, and the various infrastructure services that are provided natively by our platform such as Google Kubernetes Engine (GKE), or serverless frameworks like Cloud Functions,ย  App Engine or Cloud Run. Networking services are at the top of that list. In this blog, we discuss how Traffic Director, a fully managed control plane for Service Mesh, can be combined with our portfolio of load balancers and withhybrid network endpoint groups (hybrid NEG) to provide a high-performance front-end for web services hosted in VMware Engine. Traffic Director also serves as the glue that links the native GCP load balancers and the GCVE backends, with the objective of enabling these technical benefits:
  • Certificate Authority integration, for full lifecycle management of SSL certificates.
  • DDoS protection with Cloud Armor, helps protect your applications and websites against denial of service and web attacks.
  • Cloud CDN, for cached content delivery.
  • Intelligent anycast with a Single IP and Global Reach, for improved failover, resiliency and availability.
  • Bring Your Own IP (BYOIP),ย  to provision and use your own public IP addresses for Google Cloud resources.
  • Diverse backend types integration in addition to GCVE, such as GCE, GKE, Cloud Storage and serverless.

Scenario #1 – External load balancer

The following diagram provides a summary of the GCP components involved in this architecture:
1 External Load Balancer.jpg
This scenario shows an externalย HTTP(S) load balancerย used to forward traffic to the Traffic Director dataplane component, implemented as a fleet of Envoy proxies. Users can create routable NSX segments and centralize the definition of all traffic policies in Traffic Director. The GCVE VM IP and port pairs are specified directly in the hybrid NEG, meaning all network operations are fully managed by a Google Cloud control plane.
2 External Load Balancer.jpg
Alternatively, GCVE VMs can be deployed to a non-routable NSX segment behind an NSX L4 load balancer configured at the Tier-1 level, and the Load Balancer VIP can be exported to the customer VPC via the import and export of routes in the VPC Peering connection. It is important to note that in GCVE, it is highly recommended that NSX-T load balancers be associated with Tier-1 gateways, and not the Tier-0 gateway. The steps to configure load balancers in NSX-T, including server pools, health checks, virtual servers and distribution algorithms areย documented by VMwareย and not covered in this document. Fronting the web applications with an NSX load balancer would allow for the following:
  • Only VIP routes are announced, allowing the use of private IP addresses in the web tier, as well as overlapping IP addresses in case of multi-tenant deployments.
  • Internal clients (applications inside of GCP or GCVE) can point to the VIP of the NSX Load Balancer, while external clients can point to the public VIP in front of a native, GCP external load balancer.
A L7 NSX load balancer can also be used (not discussed in this example), for advanced application-layer services, such as cookie session persistence, URL mapping, and more.
3 External Load Balancer.jpg
To recap, the implementation discussed in this scenario shows an external HTTP(S) load balancer, but please note that anย external TCP/UDP network load balancerย orย TCP Proxyย could also be used for supporting protocols other than HTTP(S). There are certain restrictions when using Traffic Director in L4 mode, such as a single backend service per target proxy, which need to be accounted for when implementing your architecture.

Scenario #2 – Internal load balancer

In this scenario, the only change is the load balancing platform used to route requests to Traffic Director-managed Envoy proxies. This use case may be appropriate in certain situations, for instance, whenever the users want to take advantage of advanced traffic management capabilities not supported without Traffic Director,ย as documented here. The Envoy-managed proxies controlled by Traffic Director can send traffic directly to GCVE workloads:
4 External Load Balancer.jpg
Alternately, and similar to what was discussed in Scenario #1, an NSX LB VIP can be used instead of the explicit GCVE VM IPs, which introduces an extra load balancing layer:
5 External Load Balancer.jpg
To recap, this scenario shows a possible configuration with L7 Internal Load Balancer, but an L4 Internal Load Balancer can also be used for supporting protocols other than HTTP(S). Please note there are certain considerations when leveraging L4 vs. L7 load balancers in combination with Traffic Director, which are allย ย documented here.

Conclusion

With the combination of multiple GCP products, customers can take advantage of the various distributed network services offered by Google, such as global load balancing, while hosting their applications on a Google Cloud VMware Engine environment that provides continuity for their operations, without sacrificing availability, reliability or performance. Go ahead andย Original Postrivate-cloud-networking-for-vmware-engine" target="_blank" rel="noopener">review the GCVE networking whitepaperย today. For additional information about VMware Engine, please visitย the VMware Engine landing page, andย explore our interactive tutorials. And be on the lookout for future articles, where we will discuss how VMware Engine integrates with other core GCP infrastructure and data services.

Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.