DR implementation: Application Gateway
Tier: T0. Application Gateway is the regional layer-7 ingress in front of APIM and the SPA hosts. It is also the fallback path when Front Door is down.
The Application Gateway section has its own detailed pages. This page only maps the gateway to the DR scenarios.
Current configuration (prd)
| Setting | Value |
|---|---|
| Gateway | agw-rome-prd-chn-02, Standard_v2, no WAF |
| Zones | 1, 2, and 3. Autoscale minimum 2, maximum 10 |
| State | None. Configuration only, all in Terraform |
| Certificate | Platform wildcard certificate from Key Vault |
Failure scenarios
| Scenario | Behaviour | Recovery | RTO and RPO |
|---|---|---|---|
| Zone loss | Instances in the other two zones carry the traffic. Autoscale adds capacity | Automatic | Minutes. RPO 0 |
| Gateway failure | Front Door sends HTTP traffic to the priority-2 origins. The SignalR WebSocket leg stops. The MFE polling fallback is not implemented (RT-02), so live views go stale | Automatic for HTTP. SignalR waits for the gateway | Probe timing. RPO 0 |
| Bad configuration deployment | Every agw-* hostname can break, because they share one gateway | Revert the Terraform PR and redeploy. Run the hub regression suite | Deployment time. RPO 0 |
| Gateway deleted | Same as a gateway failure, and the bypass is not available | Redeploy from Terraform | Under an hour, for the deployment. RPO 0 |
| Certificate missing in Key Vault | TLS fails on every listener | Recover the certificate from Key Vault soft delete (Key Vault) | Minutes. RPO 0 |
| Front Door outage | The gateway becomes the user entry point | Bypass runbook | Minutes after approval |
Rules
- The gateway MUST stay zone-redundant with a minimum of two instances in
gmaandprd. - The gateway configuration MUST be recoverable from Terraform alone.
- The
prdgateway MUST have aCanNotDeletelock.
Gaps
The Application Gateway gaps are tracked in the Application Gateway implementation gap table. For DR, the important ones are:
- the probe settings;
- the alert coverage, which is a Resource Health alert only;
- the flagged risk of SignalR
access_tokenlogging.
Validation and drills
- Yearly in
gma: stop the gateway and measure Front Door priority-2 failover and failback. - After every gateway change: run the hub post-deployment regression suite.