At a glance | |
|---|---|
Problem | Uploading a Driverless AI Python Scoring Pipeline larger than about 1 GB through the MLOps UI fails. The |
Affects | MLOps 1.0.13 with storage image v1.4.15 at the chart-default 5Gi memory limit, under several large uploads at once. |
Workaround | Upload large pipelines one at a time. |
Solution | Raise the storage container's memory limit and run more than one storage replica, sized to your upload pattern. |
Problem
Uploading a large Driverless AI Python Scoring Pipeline ZIP (for example 1.36 GB) through the MLOps UI fails part-way. The storage container in the h2oai-mlops-storage pod is killed and restarts, and its restart count keeps climbing with each retry. A MOJO ZIP from the same experiment (for example 461 MB) uploads without trouble.
# kubectl describe pod <h2oai-mlops-storage-pod> -n <namespace>
storage:
Last State: Terminated
Reason: OOMKilled
Exit Code: 137
Restart Count: 16
Limits:
memory: 5Gi
Requests:
cpu: 1
memory: 1Gi
# storage container log during the upload
method=/google.bytestream.ByteStream/Write -> CreateArtifact -> UPLOAD permission check
... stream cuts off as the container is OOMKilledThe lines that identify this issue are Reason: OOMKilled on the storage container with memory: 5Gi under Limits, during a large UI upload.
Affected versions
Product | H2O MLOps chart 1.0.13 |
Component | Model storage service, image |
Deployment | Any; confirmed with a MinIO object store backend |
Trigger | Uploading large artifacts (about 1 GB and up, typically DAI 2.x Python Scoring Pipelines) through the MLOps UI, especially several at once. Reproduced with 4–5 large uploads pending on a single storage replica. |
Not a factor | The ~1 GB gRPC request size cap: large artifacts are streamed in chunks, which is the supported path. Artifact type: MOJOs simply stay under the limit because they are much smaller. |
Fixed in | UI upload performance is planned to improve in a later MLOps release. Not confirmed: the release number. Until then, size the storage service to your usage. |
Cause
The storage service's memory use spikes while it receives large uploads from the MLOps UI. The effect is load-driven: one large upload usually fits, but several large uploads in flight on the same storage replica push the container past its 5Gi limit, and Kubernetes kills it. Every upload in progress on that replica then fails.
The issue was reproduced on a single storage replica with a 5Gi limit. It appears with roughly 4–5 large uploads pending at the same time.
What this is not
Theory | Status |
|---|---|
The ~1 GB gRPC request size limit blocks large files | Ruled out. Large artifacts are streamed in chunks ( |
The artifact or pipeline is corrupt | Ruled out. The same pipeline uploads once storage has enough memory. |
A problem with DAI → MLOps sync | Not tested here. This article covers uploads through the MLOps UI. |
Workaround
Upload large pipelines one at a time, and wait for each to finish before starting the next. This keeps a single storage replica below its limit. It is an interim measure only.
Solution
Give the storage service enough headroom for your upload pattern:
- Raise the
storagecontainer's memory limit in your MLOps Helm values above the 5Gi default. For reference, one deployment that routinely uploads Python Scoring Pipelines over 1 GB resolved the failures with a 15Gi limit. - Run more than one storage replica, so that concurrent large uploads are spread across replicas instead of piling onto one.
- Upgrade the Helm release and confirm the new storage pods are running.
There is no official sizing table. The right limit depends on how large your artifacts are and how many are uploaded at the same time. If your users upload Python Scoring Pipelines regularly, plan for several of them in flight at once.
Not confirmed: the exact Helm value keys for the storage container's memory limit and replica count in your MLOps chart version. Check your chart's values.yaml.
How to verify
- Confirm the new memory limit and replica count:
kubectl get pods -n <namespace> | grep mlops-storage kubectl describe pod <h2oai-mlops-storage-pod> -n <namespace> | grep -A3 Limits - Upload the large Python Scoring Pipeline again through the MLOps UI and confirm it completes.
- Confirm the
storagecontainer's restart count did not increase during the upload:kubectl get pod <h2oai-mlops-storage-pod> -n <namespace> - Optional: watch memory during a busy upload period to tune the limit (requires metrics-server):
kubectl top pod -n <namespace> | grep mlops-storage
If this doesn't resolve it
Open a support ticket and include:
- Your MLOps chart version and storage image tag
- The size of the artifact that fails, and how many uploads were running at the time
- Whether the upload was made through the MLOps UI or synced from Driverless AI
kubectl describe pod <h2oai-mlops-storage-pod> -n <namespace>, showing limits, replica count and the last termination reason- The
storagecontainer log covering the failed upload (kubectl logs <h2oai-mlops-storage-pod> -n <namespace> -c storage --previous) - Your object store backend (for example MinIO or S3)
Related
- Kubernetes — Resource Management for Pods and Containers
- Fix: DAI Python Pipeline Scorer deployment OOMKilled at the default 181Mi memory limit: the next memory limit you may hit after the upload succeeds.