At a glance

Problem

A real-time MLOps deployment of a Driverless AI Python Scoring Pipeline crash-loops. The runtime container is OOMKilled seconds after start and never passes its readiness probe.

Affects

DAI Python Pipeline Scorer runtime on MLOps 1.0.13, when the deployment keeps the default memory limit of 181Mi. MOJO deployments are not affected.

Workaround

None needed beyond the solution.

Solution

Edit the deployment and raise the runtime container's memory limit to fit the scoring pipeline.

Problem

A deployment of a Driverless AI Python Scoring Pipeline enters CrashLoopBackOff. The init containers finish and the pipeline ZIP extracts correctly. The runtime then starts gunicorn, boots its workers, and is killed about a second later. MOJO deployments in the same workspace stay healthy.

Containers:
  runtime:
    Image:        .../h2oai-modelscoring-daipipelinescorer:v1.7.12-dai2.3.1-cuda11.8.0
    State:        Waiting
      Reason:     CrashLoopBackOff
    Last State:   Terminated
      Reason:     OOMKilled
      Exit Code:  137
    Limits:
      memory:  181Mi
    Requests:
      cpu:     500m
      memory:  121Mi

Warning  Unhealthy  kubelet  Readiness probe failed: HTTP probe failed with statuscode: 502
Warning  BackOff    kubelet  Back-off restarting failed container runtime in pod <pod>

The lines that identify this issue are Reason: OOMKilled together with memory: 181Mi under Limits. The 502 readiness failures are a side effect of the container being killed before it serves /model/schema.

Affected versions

Product

H2O MLOps 1.0.13

Component

DAI Python Pipeline Scorer runtime, image h2oai-modelscoring-daipipelinescorer:v1.7.12-dai2.3.1-cuda11.8.0

Deployment

Any real-time deployment that keeps the default resource settings (limit 181Mi, request 121Mi / 500m CPU)

Trigger

Deploying a DAI Python Scoring Pipeline. These pipelines carry the full Python runtime and dependencies, so they need far more memory than a MOJO.

Not a factor

The pipeline artifact: the init containers extract it cleanly. Image user/UID: this image already runs as a numeric user.

Fixed in

Not a defect. The limit is a default recommendation and can be changed on the deployment. Not confirmed: whether newer MLOps releases ship a higher default for this runtime.

Cause

The runtime container gets a default memory limit of 181Mi. That default suits small scorers, but a DAI Python Scoring Pipeline loads the full DAI Python runtime and its libraries (for example LightGBM, XGBoost and PyTorch components) plus the fitted model. That needs well over 181Mi, so the kernel kills the container as soon as the workers start loading the pipeline.

Because the container is killed before it can answer the readiness probe on /model/schema, Kubernetes reports the probe failures and restarts the container in a loop.

Solution

The 181Mi limit is a default, not a hard cap. Raise it on the deployment:

  1. In MLOps, open the affected deployment and edit it.
  2. In the runtime's resource settings, raise the memory limit (and the memory request) well above 181Mi.
  3. Save, and let the deployment restart.

There is no single recommended value; it depends on the size of the scoring pipeline and the libraries it loads. Start generously, watch actual usage (see How to verify), then tune down if needed.

Not confirmed: a recommended minimum memory for DAI Python Pipeline Scorers, and the exact field names in the MLOps UI and API for editing deployment resources.

How to verify

  1. Confirm the new limit is applied to the runtime container:
    kubectl describe pod <deployment-pod> -n <namespace> | grep -A3 Limits
  2. Confirm the pod is running and ready, with no new restarts:
    kubectl get pod <deployment-pod> -n <namespace>
  3. Check that the readiness probe now passes: the deployment shows as healthy in MLOps.
  4. Send a scoring request and confirm a response.
  5. Optional: watch memory use under real traffic to tune the limit (requires metrics-server):
    kubectl top pod <deployment-pod> -n <namespace>

If this doesn't resolve it

Open a support ticket and include:

  • Your MLOps version and the runtime image tag
  • The DAI version that produced the scoring pipeline, and the pipeline ZIP size
  • kubectl describe pod <deployment-pod> -n <namespace> after the change, showing the new limits and the last termination reason
  • The runtime container log (kubectl logs <deployment-pod> -n <namespace> -c runtime --previous)
  • The memory limit you set

Related