Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:SeldonIO Seldon core Monitoring Component Deployment

From Leeroopedia
Property Value
Principle Name Monitoring Component Deployment
Overview Deploying classifier, preprocessor, drift detector, and outlier detector as independent model components for a monitoring pipeline
Domains MLOps, Kubernetes
Related Implementation SeldonIO_Seldon_core_Seldon_Model_Load_For_Monitoring
Knowledge Sources Repo (https://github.com/SeldonIO/seldon-core), Doc (https://docs.seldon.io/projects/seldon-core/en/v2/)
Last Updated 2026-02-13 00:00 GMT

Description

A production monitoring pipeline requires four independently deployed models:

  1. Classifier (income) - The main inference model producing predictions
  2. Preprocessor (income-preprocess) - Transforms raw features into the format expected by detectors
  3. Drift Detector (income-drift) - Tests for distribution shift using batched requests
  4. Outlier Detector (income-outlier) - Flags anomalous individual inputs

Each model uses a different MLServer runtime:

  • sklearn runtime for the classifier and preprocessor (scikit-learn models serialized with joblib)
  • alibi-detect runtime for the drift and outlier detectors (alibi-detect models serialized with save_detector)

All four components must be loaded and ready before the pipeline can be created and activated.

Theoretical Basis

Decomposing monitoring into independent services follows the microservices pattern. This architecture provides several advantages:

  • Independent scaling - Each detector has different compute and memory requirements. The VAE-based outlier detector may need GPU resources, while the drift detector primarily needs CPU for statistical tests.
  • Selective updates - Retraining the drift detector (e.g., with updated reference data) does not require redeploying the classifier or outlier detector.
  • Fault isolation - If the outlier detector fails, the classifier continues producing predictions. Monitoring degradation does not cause inference degradation.
  • Runtime heterogeneity - Different model frameworks (sklearn, alibi-detect, TensorFlow) can coexist through MLServer's pluggable runtime architecture.

Each model is defined as a Seldon Model CRD (Custom Resource Definition) with:

  • A storageUri pointing to the serialized model artifact in cloud storage
  • A requirements list specifying which MLServer runtime to use

The Seldon scheduler handles downloading artifacts, instantiating the correct runtime, and registering the model for inference.

Usage

Use this principle when setting up a production monitoring pipeline with drift and outlier detection capabilities. The deployment sequence is:

  1. Upload trained model artifacts to cloud storage (GCS, S3, or local)
  2. Define a Model CRD YAML for each component specifying storageUri and requirements
  3. Load each model using the seldon CLI
  4. Wait for all models to reach ModelAvailable state
  5. Proceed to pipeline definition

Related Pages

Implementation:SeldonIO_Seldon_core_Seldon_Model_Load_For_Monitoring

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment