Load Balancing & Delivery参照資料確認: 2026-09-11

Azure Traffic Manager

Traffic Managerを、DNS-based traffic steering、endpoint monitoring、TTL/failover、Priority/Weighted/Performance/Geographic等のrouting methodで整理する。

この記事の目次

Azure Traffic Managerを理解するための前提

Traffic ManagerはDNS-level traffic steering serviceで、HTTP reverse proxyではない。clientはDNSで返されたendpointへ直接接続する。 profileはrouting methodとendpoint setを持ち、endpoint monitoringでhealthyな候補をDNS responseへ反映する。

routing methodsにはPriority、Weighted、Performance、Geographic、Multivalue、Subnet等がある。 failover時間はmonitoring intervalだけでなくDNS TTL、recursive resolver/client cache、application retryの影響を受ける。

Traffic Manager自体はTLS termination、WAF、HTTP header rewrite、content cachingを提供しない。必要ならendpoint側のFront Door/AppGW/LBと組み合わせる。 endpointはAzure serviceだけでなくexternal endpointも扱えるため、hybrid/multi-cloud DNS steeringにも使える。

通信や判断の流れを追う
ClientEdge / Load balancerRouting / HealthBackend

Control plane / Data plane / Observability

DNS answer

Traffic Managerが選定endpointのDNS name/IPをresponseとして返す。

Direct connection

clientは返されたendpointへ直接connect。Traffic Managerはdata pathに入らない。

Health control

endpoint monitoringがDNS candidate setを更新する。

判定原則L4 flow、L7 proxy、DNS steering、NVA chainingを同じ「load balancing」として扱わず、clientが最終的にどのIPへ接続し、どこでconnectionが終端/再生成されるかを最初に固定します。

Client-to-backend path

  1. client/recursive resolverがapplication DNS nameをqueryする。
  2. CNAME等でTraffic Manager profile domainへqueryが到達する。
  3. Traffic Managerがrouting methodとendpoint healthを評価する。
  4. selected endpointのDNS answerをTTL付きで返す。
  5. clientはそのendpointへ直接TCP/TLS/HTTP接続する。
  6. endpoint failure後もcache TTLが残るclientは旧answerを使い続け得る。

仕組みを分解する

Traffic Managerの最大の誤解は、Front Doorのように「trafficがTraffic Managerを通過する」と考えることです。data plane pathには入りません。そのためclient IP preservationは問題にならない一方、DNS cacheのためfailoverは即時ではなく、endpoint側のTLS/WAF/cacheもTraffic Managerでは提供されません。

運用時はresource configurationだけで完了判定せず、実clientからの名前解決、TCP/TLS handshake、HTTP status、backend側のsource IP/Host/header、health telemetryを同じtimestampで揃えます。load balancer/proxyがhealthyでもapplication dependencyが壊れている場合があり、逆にbackend applicationが正常でもhealth probe条件やrouting ruleが不整合ならtrafficは到達しません。

設計判断

判断軸設計方針
Priorityactive/passive DR。primary healthyならsecondaryへ配らない。
Weightedcanary/gradual traffic split。DNS cacheのためrequest単位の厳密比率ではない。
PerformanceDNS resolver location/latency mapに基づくglobal distribution。
Front Doorとの比較global HTTP proxy/WAF/cacheが必要ならFront Door。DNS-only/multi-protocol/external endpoint steeringならTraffic Manager。

確認手順

Read-only verification

  • profile routing method、TTL、monitor configを確認する。
  • endpoint type/status/monitor status/weight/priority/locationを確認する。
  • 複数resolver/locationからdig/nslookupしてanswerとTTLを記録する。
  • endpointをdisabled/unhealthyにしてTTLを跨いだfailoverを測る。

Evidence to keep

  • resource ID / subscription / region / frontend / backend targetを保存し、同名resource取り違えを防ぐ。
  • DNS answer、source IP、destination IP/port、Host/SNI、health status、timestampを同じincident recordへ残す。
  • 変更前後で同じclient journeyをnew connectionとして再実行する。
  • Portal表示だけでなくCLI/PowerShell/APIまたはlogsを併用し、観測面の一時差を識別する。
Azure CLI — read-only first
az network traffic-manager profile show -g <rg> -n <profile> -o jsonc
az network traffic-manager endpoint list -g <rg> --profile-name <profile> -o table
PowerShell — read-only first
Get-AzTrafficManagerProfile -ResourceGroupName <rg> -Name <profile>
Get-AzTrafficManagerEndpoint -ResourceGroupName <rg> -ProfileName <profile> -Type AzureEndpoints

障害切り分け

症状第一候補証拠次の確認
failoverが遅いDNS cache/TTLdig TTL + endpoint healthresolver/client cache確認
想定regionへ行かないrouting method/locationDNS answer sourceresolver egress location確認
TLS/WAF期待がないservice role誤認data pathendpoint service追加
Weighted比率がずれるDNS-level stickiness/cacheresolver query distributionrequest単位比率と分離
Degradedendpoint monitoring failuremonitor statusprobe protocol/path/cert

変更時の確認と rollback

  • routing method/endpoint weight/priority/TTLをexportする。
  • DNS CNAME cutoverはold/new profile両方を一定期間維持する。
  • TTL短縮はchange前に行わないと既存cacheには効かない。
  • rollback評価はauthoritative responseだけでなく実client resolver cacheを含める。
Change safety: health probe、DNS、TLS certificate、WAF/routing rule、backend poolを同時に変えるとfailure domainを判別できません。1 hypothesisずつ変更し、各段階で同じobservable journeyを再実行します。

Current notes — 2026-09-11

Current behavior / guidance

Traffic Managerは現在もDNS-based steering。Front Door Standard/Premiumのglobal reverse proxyとはdata-path roleが根本的に異なる。

Official sources

動作、retirement、feature availability、health/TLS behaviorはMicrosoft Learnのcurrent documentationを基準に確認しています。production変更時は対象subscription/region/SKUの最新documentationとresource provider stateを再確認してください。