
On this page
It’s the week of your biggest sale of the year. Your checkout service is humming along on Google Cloud, purchases are going through correctly, and your dashboards are green. Your services are redundant across two managed instance groups of three Compute Engine VMs each, and everything looks good. Then, without warning, all six VMs vanish at once, and your checkout page goes with them.
Nothing in your service failed, but the zone did. europe-west2-b went down, and because all of your backends were located in it, your service went down. As it turns out, you scaled capacity without adding redundancy.
This is one of the easiest gaps to miss in Google Cloud load balancing. You can have redundant backends without realizing they’re located within a single failure domain, in this case, a zone. For services running in GCP, Gremlin automatically flags this as a Detected Risk called single-zone backends.
In this blog, we'll explain how Google Cloud backend services map to zones, why keeping every backend in one zone is a single point of failure, and how to find, fix, and test single-zone backends across your projects.
How Google Cloud backend services map to zones
Backend services sit between Cloud Load Balancing and the compute instances that serve requests. They decide which backends to route requests to, how to balance traffic across backends, and which backends are healthy enough to receive traffic. Backends are organized into groups, and each group has a scope:
The NEG overview lists every NEG type and its scope. For this risk, the relevant backends are zonal instance groups and zonal NEGs, since a zone failure in these will result in the entire backend becoming unavailable.
Why single-zone backends are a reliability risk
Zones are designed as isolated failure domains, so a failure in one is unlikely to impact systems running in another. This is why Google—and other cloud providers—recommend provisioning resources across two or more zones. If all of your backends are located in a single zone and that zone has an outage, all of your backends go down simultaneously. Your load balancer will stay up, but it won’t have anywhere to route requests, and users will get errors.
This risk can be caused by:
- Console and template defaults: An engineer might create a zonal instance group or NEG for short-term use and select default options, resulting in instances running in a single zone.
- Scaling up instead of out: Adding a second instance group to handle more load adds capacity to handle larger traffic volumes, but doesn’t add replication.
- Single-zone GKE clusters: GKE's NEG controller creates one zonal NEG for each zone the cluster's nodes run in. A cluster whose nodes all run in one zone only produces a single NEG.
- Migrations and rebuilds: A backend service rebuilt after an incident or migration might not have the same number or distribution of backends as before.
How to find single-zone backends
Each backend belonging to a backend service is tracked by a URL. Zonal groups contain /zones/ in the URL, while regional groups contain /regions/. For example, a zonal group URL for a NEG could include /zones/us-central1-a/networkEndpointGroups/checkout-neg. To count zonal backends, we can list the backend groups for each backend service and count the number of unique zones.
Start by listing the backend groups for your backend service (this example queries a service named checkout-backend):
If every URL shows the same /zones/ segment, the service is at risk.
If you have multiple backend services within a cloud project, you can retrieve their properties as JSON and filter with the jq tool. By default, backend-services list returns global backend services and those in every region. This command instead lists backend services whose zonal backends all share one zone:
This outputs one line for each at-risk backend service, followed by the zone it’s pinned to. Backend services that only use regional managed instance groups or serverless NEGs don't appear, since their backends have no single zone. A backend service that mixes one zonal group with a regional MIG will still be listed: you should check these yourself to ensure they're in multiple regions.
If you want to scan every Google Cloud project you have access to, you can wrap this same command in a for loop that iterates over each project:
Finding single-zone backends automatically with Gremlin
A script can only tell you what's at risk when it runs. Without regular scheduling, it can’t tell you if a service becomes at risk over time, after a deployment, or as a result of a migration. A service that was redundant last quarter might no longer be redundant after several redeployments and code changes.
Gremlin checks for single-zone backends continuously as one of its GCP Detected Risks. When you map a Gremlin service to a GCP Backend Service, Gremlin reads the zone of each instance group and NEG attached to it. If there are fewer than two unique zones, Gremlin marks the service At Risk. The risk shows on the service details page next to the reliability score, along with guidance on how to fix it. Once you add a backend in a second zone and Gremlin re-evaluates the risk, it will be marked as Mitigated and your service's reliability score will increase.

How to make your backend service zone-redundant
The fix to this risk is simple in principle: add a backend in a second zone, then scale your compute instances out across both zones. Google Cloud lets you add and remove backends without having to redeploy your load balancer. You will, however, need to ensure that your services are replicated to the new zone.
Redundancy also has a capacity element. If you run two zones and lose one, the surviving zone must handle double its normal traffic. With three zones, the remaining two must each absorb half of the failed zone’s traffic. If your backends are already near capacity, the incoming traffic may saturate them. To avoid this, ensure autoscaling is enabled and allows each surviving zone to support the incoming load.
These examples use us-central1-a and us-central1-b, but you can use any zones in the region you’re deployed to. Make sure to size the new backend based on your traffic patterns.
Instance group backends
The simplest long-term fix is a regional managed instance group (MIG), which spreads instances across zones automatically. Create one from your existing instance template, set the named port your backend service uses (http by default), then attach it to the backend service. This example creates a six-instance MIG across three zones in us-central1 using a template named checkout-template:
Once the new group passes health checks, drain the old zonal group by setting its capacity scaler to 0 with:
Connection draining doesn’t apply when you remove a group from a backend service, so this lets in-flight requests finish. Remove the group with:
If you still want to use zonal groups, create an instance group in another zone and add it alongside the first:
Use the same balancing mode and capacity settings as your existing backend so traffic splits evenly.
Zonal NEG backends
For VM or hybrid endpoints in a zonal NEG, create a NEG in a second zone, add endpoints to it, and attach it the same way:
GKE backends
In GKE, you don't manage NEGs directly. The NEG controller creates one zonal NEG for each zone your cluster's nodes run in. This means if all of your cluster’s nodes run in a single zone, you’ll only have one zonal NEG. You can add new zones to an existing node pool using gcloud container node-pools update. This creates nodes in every zone you add, so a pool with three nodes per zone grows from three nodes to nine:
For new clusters, create a regional cluster instead of a zonal one. However, simply deploying to multiple zones doesn’t automatically make your pods zone-redundant. You may find that your replicas are all running in the same zone. You can use topology spread constraints to prevent this. Also note that GKE creates a NEG in every zone where the cluster has nodes, even zones running none of your service’s pods. A backend service can list NEGs in several zones while all of its traffic still lands in one, so check where your pods actually run.
With Terraform
When deploying with Terraform, add one backend block per group in your google_compute_backend_service resource, and use a regional instance group manager so the VMs themselves span zones:
After you apply the change, refresh the service page in Gremlin. The single-zone backends risk will show as Mitigated.
Validating zone redundancy with fault injection
Adding a second zone to a backend service is a crucial first step, but it doesn’t prove that failover works.
The load balancer will shift traffic away from backends that fail their health checks, but this assumes the health checks will fire as expected. A misconfigured health check could result in the load balancer sending requests to zones that are effectively down or unresponsive. The surviving zone also has to scale fast enough to absorb the extra load, while the services calling the load balancer have to handle the requests that were in flight when the zone failed.
You can't take a Google Cloud zone offline, but you can simulate a zone outage using a blackhole experiment. The blackhole experiment drops network traffic to and from its targets, so the load balancer sees its backends go silent the same way it would during a real outage.
To run a blackhole experiment:
- Log into the Gremlin web app, select Experiments, then select + Experiment.
- Under Hosts, click the Tags tab, expand Zone, and select one of the zones your backend service uses.
- Under Choose a Gremlin, select the Network category and the Blackhole experiment. By default, Blackhole drops all traffic except traffic to
api.gremlin.comand DNS, so the Gremlin agent stays reachable throughout the experiment. Experiments run for 60 seconds (one minute) by default. - Click Run Experiment.
While it runs, watch how long it takes the load balancer to mark the zone's backends unhealthy, whether the surviving zone scales out, and whether your application returns errors. Click the Halt button to stop the experiment at any time.
While experiments like this are great for one-off testing, they can’t verify that your service will stay redundant over time. That’s why Gremlin's reliability tests include a Zone test that makes a randomly selected zone unreachable, and can run automatically during a weekly testing window. If there’s a regression and your backend service becomes single-zoned again, the Zone test fails and lowers your reliability score. Open risks also appear in the Team Risk and Risk Inventory reports, giving you time to resolve the problem before it becomes an incident.
Zone redundancy is easy to lose without noticing. A Terraform module with a hardcoded zone, a backend service rebuilt during an incident, or a GKE cluster created as zonal to save money all leave the load balancer looking healthy until its zone isn't.
Other Backend Service risks to watch for
Single-zone backends is one of four GCP risks that Gremlin detects on Backend Services. Gremlin also regularly checks for:
- Connection draining disabled, which flags backend services with a draining timeout of zero. Without it, in-flight requests are cut off when an instance is removed, such as during scale-in or a managed instance group update.
- No circuit breaker configured, which flags backend services with no limits on connections or requests, leaving them open to retry storms when a downstream dependency fails.
- Outlier detection disabled, which flags backend services that won't eject endpoints that are up but misbehaving. Circuit breakers and outlier detection are only available on Envoy-based load balancers (external Application Load Balancers using the EXTERNAL_MANAGED scheme, and internal Application Load Balancers), not classic Application Load Balancers.
Gremlin's Detected Risks check every mapped Backend Service continuously, alongside the same kinds of checks for AWS, Azure, and Kubernetes.
To find single-zone backends in your own projects, start a free 30-day trial, or see how it works in our self-guided product tour.
Keep reading
Avoid downtime. Use Gremlin to turn failure into resilience.
Gremlin empowers you to proactively root out failure before it causes downtime. See how you can harness chaos to build resilient systems by requesting a demo of Gremlin.




