在打印窗口把「目标」选为「另存为 PDF」即可保存,页面已带 awsgood.com 版权水印。 返回原文

www.awsgood.com

How to Do Managed Operations for Local Zones: Monitoring Alerts and an Inspection Calendar (with Checklist)

2026-11-25 AWS Managed Operations 约 9 分钟

Bottom line first

  1. The operational challenge of Local Zones is not "one more Availability Zone"; it lies in being far from the primary Region, having fewer instance types, and small capacity—network latency jitter, inability to secure instance capacity, and parent Region API throttling account for the vast majority of day-to-day alarms. Monitoring should focus on these three first.
  2. Day-to-day operations can be fully calendarized: 5 minutes daily to check latency and alarms, 30 minutes weekly to review capacity and logs, monthly reconciliation + backup recovery drill, and quarterly cross-Region disaster recovery switchover and security review. A small team can sustain this cadence.
  3. What is truly worth outsourcing to a managed team is "the part that wakes you up in the middle of the night"—alarm triage, Local Zone instance capacity replenishment, backup recovery drills, and billing anomaly investigation; keep business code and architecture decisions in-house.

How exactly are Local Zones different from regular Availability Zones?

Many people think Local Zones are just "Availability Zones closer to home" and directly apply the multi-AZ high-availability playbook, only to run into problems in the second week after launch.

The differences mainly lie in three points. First, they are attached under a parent Region (for example, Los Angeles and Boston Local Zones under us-east-1). Control plane requests actually go to the parent Region's API endpoint. When you call aws ec2 describe-instances from China and specify a Local Zone, you may occasionally see this error:

An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.

This is not a mistake in your script; the parent Region endpoint is being throttled. Second, the available instance types are narrow—commonly a few sizes from the m5, c5, r5, and g4dn families. m5.xlarge may have no inventory in a given Local Zone, and scaling up directly results in InvalidParameterValue or InsufficientInstanceCapacity. Third, the local capacity pool is small; once someone else grabs it, you cannot scale out.

So I generally manage Local Zones as "semi-independent data centers": monitoring watches the link between it and the parent Region, capacity is used as a fixed quota, and bills are tagged separately.

5 minutes a day: first check latency and overnight alarms

The first thing to do when arriving at your desk in the morning is not to flip through console pages, but to run two commands.

# 1. Check whether any alarms were triggered last night (last 24 hours)
aws cloudwatch describe-alarms 
  --state-value ALARM 
  --query 'MetricAlarms[?StateUpdatedTimestamp>=`2026-11-01T00:00:00Z`].[AlarmName,StateUpdatedTimestamp,MetricName]' 
  --output table

# 2. Check the health status of instances in the Local Zone subnet
aws ec2 describe-instance-status 
  --filters Name=instance-state-name,Values=active 
  --include-all-instances 
  --query 'InstanceStatuses[?AvailabilityZone!=`us-east-1a`].[InstanceId,AvailabilityZone,InstanceStatus.Status,SystemStatus.Status]' 
  --output table


Daily metrics I watch four, with thresholds based on experience:

| Metric | Namespace/Dimension | Alarm threshold | Description |
|---|---|---|---|
| Instance-to-parent-Region RTT | CloudWatch custom metric | > 40 ms for 3 consecutive periods | Early signal of slower cross-Region calls |
| ALB TargetResponseTime p99 | AWS/ApplicationELB | > 800 ms for 5 minutes | Single-instance performance degradation shows up earlier than overall error rate |
| Instance CPUUtilization | AWS/EC2 | > 75% for 10 minutes | Local Zone scaling is slow; alert early |
| Status check failures | AWS/EC2 StatusCheckFailed | ≥ 1 for 2 consecutive periods | Single point of failure; requires direct manual intervention |

Do not copy thresholds verbatim. I set RTT at 40 ms for a client running a cross-border independent site, but their business was mainly asynchronous callbacks, and 40 ms alarmed every day; after changing to 80 ms it went quiet. Thresholds must be set after running two weeks of real traffic.

Overnight alarm handling principles: CPU and memory alarms are recorded only, no wake-up calls; only these three categories get phone calls: status check failures, sudden spikes in the 5xx ratio, and database connection exhaustion. Too many calls make people numb—the most common way operations teams self-destruct.

## 30 minutes a week: capacity, logs, and the quota that is easy to miss

Three things every week.

First, confirm that Local Zone instance capacity has not been quietly squeezed. On-Demand capacity in Local Zones is not guaranteed, so I buy Capacity Reservations in advance or at least keep one standby instance as a fallback:

```bash
aws ec2 describe-capacity-reservations 
  --query 'CapacityReservations[].[CapacityReservationId,InstanceType,AvailabilityZone,AvailableInstanceCount,State]' 
  --output table


In the output, if AvailableInstanceCount drops to 0 while State is still active, the reservation is fully occupied and scaling will fail.

Second, review Local Zone-related write operations in CloudTrail, focusing on whether anyone accidentally deleted a subnet or changed a route table. Local Zone subnet routes point to the parent Region; one wrong change makes the whole site unreachable.

Third, check Service Quotas. There is a pitfall here: some resource quotas for Local Zones are counted against the parent Region; you may think they are independent quotas, but they are actually shared. Scan once a week:

```bash
aws service-quotas list-service-quotas 
  --service-code ec2 
  --query 'Quotas[?QuotaName!=null].[QuotaName,Value]' 
  --output table | head -40


30 minutes is enough; don't turn it into a two-hour meeting.

## Monthly: break down the bill and actually restore a backup once

### Billing

Local Zones unit prices are generally higher than the parent Region. The same m5.xlarge does not have the same On-Demand price in a Local Zone and in us-east-1 proper; the exact difference varies by Region and instance type, subject to the AWS official pricing page. I generally require all Local Zone resources to be tagged with two tags: `env` and `zone-scope=local`, then use Cost Explorer to break down by tag:

```bash
aws ce get-cost-and-usage 
  --time-period Start=2026-10-01,End=2026-11-01 
  --granularity MONTHLY 
  --metrics UnblendedCost 
  --group-by Type=TAG,Key=zone-scope


I once hit a bill spike: one month the Local Zone line jumped from a little over 2,000 RMB to nearly 10,000. It took two days of investigation to find that a test environment had launched a g4dn.xlarge and forgotten to shut it down, running for the full month. GPU instance types in Local Zones have high unit prices, and the cost of forgetting to shut one down is much greater than in the parent Region.

### Backup and recovery drills

"Configured" backups and "restorable" backups are two different things. Do a real restore at least once a month: launch an instance from a snapshot into the Local Zone subnet, verify that security groups, routes, and DNS resolution are all correct, then delete it.

The drill record must clearly state three things: how many minutes the RTO actually took, which step got stuck, and what to change next time. The most awkward situation I have seen is snapshots in the parent Region while the instance needs to be launched in a Local Zone; nobody had done the cross-Region copy step, and they had to look up documentation on the spot when a real incident occurred.

## Quarterly: disaster recovery switchover and security review

Quarterly work is heavier, but only four times a year.

For disaster recovery, Local Zones are inherently unsuitable as the sole deployment point—small capacity, few instance types. I generally recommend keeping a copy of the main business in the parent Region, with Local Zones handling latency-sensitive parts (such as static asset distribution and nearby session access). The quarterly drill is: switch Local Zone traffic back to the parent Region, see whether the business can handle it, switch back and then over again, timing the whole process.

Security review follows a checklist: whether IAM has ever granted broad permissions separately for Local Zone resources (very common when rushing to launch); whether security groups have 0.0.0.0/0 open on non-80/443 ports; whether the cross-Region usage policy for KMS keys has issues; whether CloudTrail covers Local Zone API calls.

## When not to use this calendar

If the business only runs a static site or a pure CDN origin node on Local Zones, with no state, no database, and no sessions, then this daily/weekly/monthly/quarterly cadence is over-operations. In such scenarios, just watch the two CloudWatch metrics—5xx and latency—and configure an SNS email notification.

Conversely, if stateful services run in the Local Zone, or it is the only entry point for a business path, then this checklist is not enough; you need to add Chaos drills and reconciliation mechanisms.

## Hands-on testing and pitfalls: troubleshooting an RTT alarm

At 2:17 a.m. on a Wednesday in September 2026, the alarm went off. A custom metric showed that the RTT from a Local Zone to the parent Region jumped from 12 ms to 95 ms and lasted for 6 minutes, and TargetResponseTime p99 rose from 210 ms to 1.4 seconds.

What was wrong with the first version of the configuration: initially we only monitored the instance's own StatusCheckFailed and CPU, and did not monitor the RTT of the cross-Region link at all. It was only after the business side reported "the API is lagging" that we added the metric. When adding it, we took the easy route and set the RTT threshold to 25 ms. As a result, normal daytime fluctuation reached 30 ms, triggering more than ten alarms a day, and a colleague muted the notifications—this is the most dangerous state.

Final diagnosis process: first run describe-instance-status to rule out instance failure; in the output, both InstanceStatus and SystemStatus were ok; then use VPC Flow Logs to inspect traffic during those 6 minutes and find that outbound retransmissions were noticeably high; finally confirm that it was jitter on an intermediate carrier link on the parent Region side, unrelated to our configuration.

We changed three things: adjusted the threshold from 25 ms to 40 ms and changed it to "3 consecutive periods"; changed the alarm action from email-only to "email + WeCom, but the same alarm is not repeated within 30 minutes"; and added a runbook: "if RTT stays above 3 times the baseline for 10 consecutive minutes, automatically switch traffic back to the parent Region."

By the way, when teams in China view the AWS console, the Local Zones instance type list and quota page often take two or three refreshes to appear. Don't assume it's your network; that's exactly how we misjudged it at the time.

## FAQ

**Do Local Zones need a separate monitoring setup?**

No need to set up another system; CloudWatch plus custom metrics is enough. The key is to add the two types of metrics that are not needed in the parent Region: cross-Region RTT and capacity.

**How should alarm thresholds be set so they are not noisy?**

First run two weeks of real traffic to record a baseline, then take 1.5–2 times the baseline as the threshold, and add "N consecutive periods" suppression. After setting thresholds, observe the alarm