~/lukaszbienkowski.pl

03/04 · ml serving at samsung ads

Rollback for bad models

When a bad model version gets out, the way back should be short and boring. I built a self-service API that does two things, on request or automatically.

  • Roll back: the last known-good configuration is restored.
  • Block: a bad version is banned for good. Even if someone puts it back in the config file by hand, it does not go out; only a new version can.

Airflowmodel rolloutsshadowrollback

cat how-it-works

  • bad model detected automatically by VM and Kubernetes health checks (e.g. a model that did not start because of an incorrect artifact)
  • rolled back to the last healthy version
  • future redeployments of that model blocked
  • the model's owners notified via PagerDuty