QuestionQ12

VerifiedDeployment Strategies

A Machine Learning Engineer requires a continuous deployment pipeline for models hosted on Databricks Model Serving. The deployment automation must run after a model is trained and registered with MLflow. Its objective is to deploy the latest model version from the MLflow Model Registry only when the model can satisfy the company’s strict latency requirement (P95 < 300ms) while handling production traffic.

How can the engineer confirm that new models satisfy the latency requirement when they are served in production?

Explanation

Databricks documents load testing as the way to verify that a Model Serving endpoint meets business requirements for latency and throughput before it is put into production: a load-testing client (for example Locust) drives the endpoint with representative payloads at the expected production request rate, and the client measures the resulting latency percentiles, so the pipeline can gate promotion on P95 < 300 ms. This reproduces the full production request volume against the candidate version, which is what the SLA is defined over, and it does so without routing any real user request to an unvalidated model. Splitting live traffic to a challenger version exercises the candidate at only a fraction of the production rate and only after real users are already being served by it, so it cannot act as a pre-deployment gate. The MLflow Get Run API returns only metrics explicitly logged during a training run, not serving-time latency measured under request load, so neither a model_latency nor an inference_latency training metric answers the question.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!