Study FAQ
How does traffic mirroring work for an Azure ML managed online endpoint?
Also asked as 2
- What does shadow traffic test on an Azure Machine Learning online endpoint?
- What limits and behavior should I expect when mirroring Azure ML online traffic?
Answer
Mirroring copies a share of ordinary endpoint requests to a shadow deployment. Clients receive the live deployment's responses. Calls that explicitly name a deployment bypass the shadow copy, so generate ordinary traffic when testing the mirror. Use side-effect-free scoring because mirrored requests run again.
Microsoft supports mirroring for managed online endpoints, with one shadow target per endpoint, a maximum of 50 percent and only live or mirrored traffic on a given deployment. Microsoft documents the Azure CLI ml extension (v2) 2.4.0 or later and the v2 Python SDK (azure-ai-ml) 1.0.0 or later. Older tools can remove the mirror setting when updating the endpoint. Check observed shadow requests, errors and latency, then set and verify mirror traffic at zero before sending candidate responses to clients.
Microsoft Learn
Full explanation
AI-300: Lab: Testing, Rolling Out, and Reverting an Online Model
Study guide · AI-300
Read the full explanation