Skip to content

Qdrant: No space left on device – WAL buffer size exceeds disk space

AItested on Ubuntu 24.04, k3s v1.37.3+k3s1, Longhorn 1.13.0, Qdrant 1.20.3 (Helm-Chart), Volume 2 GiB

Loading runs normally for minutes, then HTTP 500 arrives. The pod is ready, /readyz answers – but the volume has no room left for a new page in the write-ahead log.

Symptom

~/werkbank/bin/python ballast.py http://10.43.151.237:6333
 540000 Punkte nach  577 s
 560000 Punkte nach  596 s
nach 560000 Punkten und 597 s abgelehnt:
Unexpected Response: 500 (Internal Server Error)
Raw response content:
b'{"status":{"error":"Service internal error: No space left on device: WAL buffer size exceeds available disk space"},"time":0.009276535}'

A test program (German output) writes about 940 points per second into a collection on a 2 GiB volume until Qdrant refuses.

Diagnosis

The log shows the order – optimizer errors first, the rejected writes five minutes later.

kubectl -n qdrant logs qdrant-0 -c qdrant --since=15m
2026-12-04T17:41:18.723596Z ERROR collection::update_workers::optimization_worker: Optimization error: Service runtime error: Not enough space available for optimization, needed: 540.70 MiB, available: 495.39 MiB
2026-12-04T17:46:23.745861Z ERROR qdrant::actix::helpers: Error processing request: Service internal error: No space left on device: WAL buffer size exceeds available disk space

Causes

volumeThe PVC is too small for data, WAL and optimizer

While rebuilding a segment, the optimizer temporarily needs room for the old and the new version. Without it, rearranging fails first, and later appending to the write-ahead log fails too.

HelmSize changed in the chart – nothing happens

The volume size in the chart only applies when a PVC is first created. A helm upgrade fails with "spec.volumeClaimTemplates: Invalid value", and the volume stays full.

Fix

kubectl -n qdrant patch pvc qdrant-storage-qdrant-0 -p '{"spec":{"resources":{"requests":{"storage":"4Gi"}}}}' – Longhorn grows the volume while it runs (a little over 30 s in the lab). Then send an empty PATCH to the collection so the optimizers run again.

Don't: Trust the pod status or /readyz. Both stay green during the whole incident – monitor the volume fill level and the optimizer errors in the log.

▶
Break it yourself and find it – free
Vector database engineering on Kubernetes, day 3: storage – when the closed stacks are full.
Go to day 3 →

FAQ

Why do writes still succeed minutes after the first error?

At first only the optimizer fails, because it needs extra room. Appending to the WAL works until there is no room for that either.

Does the pod have to restart for the expansion?

No. With Longhorn and allowVolumeExpansion, the lab volume grew from 2 to 4 GiB while it was running.

Related error patterns

More