188 MB to 610 MB: Best Vector DB for a 2 GB VPS
The compose file from the tutorial assumes 8 GB, and on a 2 GB box the database container restarts while the app waits for it.
📜 Table of Contents
📖 Keep reading
A 2 GB VPS is the cheapest machine that can still run a real RAG stack, and the vector database is the component most likely to eat it. So we put four engines under a hard 300 MB memory cap, one at a time, on a 2 vCPU box with 1.6 GiB of visible RAM: Qdrant, Chroma, Weaviate and pgvector. All four started and stayed up. Idle memory ranged from 17 MiB to 75 MiB, and the image on disk from 188 MB to 610 MB.
Milvus is the exception, and not because it failed the test: we did not run it. Its own documentation asks for at least 8 GB of RAM for standalone, and its Compose file starts etcd and MinIO alongside the database. On a 2 GB box that is not a tuning problem.
How the numbers were taken
Host: 2 vCPU, 1.6 GiB RAM visible to the OS, Docker 24.0.9, empty database in every case. Pull size comes from the registry manifest for linux/amd64, summing compressed layers. On-disk size is docker image inspect after the pull, which is what the image occupies once unpacked. Memory is docker stats --no-stream 25 seconds after docker run, with --memory=300m --memory-swap=300m so a runaway container cannot take the host down. Each container was removed before the next started.
A 25-second sample measures the floor, not the working set. An empty database has no index to hold; the numbers below say what the process costs before you put a single vector in it, which is exactly the part a small VPS has to budget first.
| Engine | Pull (compressed) | On disk | Idle RSS | Port | License | GitHub stars |
|---|---|---|---|---|---|---|
| Qdrant | 70.9 MB | 188.2 MB | 17.1 MiB | 6333, 6334 | Apache-2.0 | 35,792 |
| Chroma | 168.0 MB | 610.0 MB | 48.4 MiB | 8000 | Apache-2.0 | 29,807 |
| Weaviate | 88.9 MB | 197.7 MB | 75.3 MiB | 8080 | BSD-3-Clause | 16,973 |
| pgvector | 156.5 MB | 439.1 MB | 58.9 MiB | 5432 | PostgreSQL | 23,875 |
| Milvus | 510.1 MB | not run | not run | 19530 | Apache-2.0 | 46,766 |
Stars are from the GitHub API on 1 December 2026. All four test containers answered their health endpoints with HTTP 200; pgvector has no HTTP endpoint, and its log said database system is ready to accept connections.
Qdrant: smallest of everything
70.9 MB compressed, 188.2 MB on disk, 17.1 MiB idle. It is the only engine here that stayed under 20 MiB and the only one whose image is under 200 MB after unpacking. For a 2 GB VPS that leaves the rest of the machine to the app, the embedding model and the OS page cache.
Qdrant also lets a collection keep vectors on disk instead of in RAM, which matters once the dataset outgrows the box. The trade is query latency; for a few hundred thousand vectors on local SSD it is usually the right trade on a cheap VPS.
docker run -d --name qdrant --memory=300m --memory-swap=300m -p 6333:6333 -p 6334:6334 -v /srv/qdrant:/qdrant/storage qdrant/qdrant:latest
curl -s http://127.0.0.1:6333/healthz
pgvector: one less service
156.5 MB compressed, 439.1 MB on disk, 58.9 MiB idle. On its own it looks mid-pack. The argument for it is not the image, it is the service you do not add: if the app already runs Postgres, vectors live in the same database, the same backup, the same connection string, and joins with your metadata are ordinary SQL.
Budget the index separately. HNSW is built and queried through Postgres shared buffers, so a 2 GB box needs shared_buffers and maintenance_work_mem set deliberately rather than left at defaults. The container starting is not the same as the index fitting.
Weaviate: 75 MiB idle, hybrid search included
88.9 MB compressed, 197.7 MB on disk, 75.3 MiB idle. It has the highest idle figure of the four, but it also ships vector and keyword search in one engine, which on a small box can replace a second service. If your retrieval needs BM25 plus vectors and you do not want to run both, the extra 58 MiB of idle RAM against Qdrant buys that back.
Chroma: 610 MB on disk for 48 MiB idle
168.0 MB compressed but 610.0 MB on disk, the largest unpacked image in the test, and 48.4 MiB idle. The download is not the problem; the 610 MB is. On a 40 GB VPS disk it is affordable. On a 20 GB disk with a model cache and backups it is the first thing you notice.
Chroma's advantage is the Python-first API and the shortest path from a notebook to a running store. If you are prototyping and the disk is not tight, that is a real advantage. If you are packing a production image, it is 3.2 times Qdrant's footprint for the same empty database.
Milvus: 510 MB and two more services
The image alone is 510.1 MB compressed, the largest of the five. The Compose file adds etcd and MinIO, so a standalone deployment is three containers, and the hardware page lists 8 GB of RAM as the standalone requirement with 16 GB recommended. None of that is a criticism of Milvus; it is built for datasets and throughput a 2 GB VPS does not have.
The part idle memory hides
Vectors are the working set. A 384-dimension float32 vector is 1,536 bytes before any index overhead: 100,000 vectors is 154 MB, one million is 1.54 GB. On a 2 GB machine, one million 384-dimension vectors cannot sit in RAM next to the app and the OS, no matter which engine you pick. That is why on-disk vector storage or a smaller embedding dimension matters more than the 17-versus-75 MiB idle difference.
So the decision order on a small VPS is: how many vectors will you actually hold, does the engine support keeping them on disk, and only then which process idles lower. The idle table tells you whether the engine fits at all; the vector math tells you whether the data fits.
What we would pick
- Smallest footprint, default choice: Qdrant. 188 MB on disk, 17 MiB idle, and vectors can move to disk when the dataset grows.
- Already running Postgres: pgvector. One database to back up instead of two; spend the saved RAM on shared_buffers.
- Need keyword and vector search in one engine: Weaviate. 75 MiB idle is the price of not running a separate BM25 service.
- Prototype in Python, disk is cheap: Chroma. 610 MB on disk is the cost of the convenient path.
- A 2 GB VPS: not Milvus. The documented floor is 8 GB, and the Compose stack is three containers.
What this test does not cover
Empty databases, 25 seconds after start, one machine, one container at a time. No vectors were inserted, no index was built, no query was timed. Memory with a real HNSW graph will be higher, and how much higher depends on the engine, the dimension and the index parameters. The pull sizes are a snapshot of the tags on 1 December 2026; latest moves. The point of the table is the floor and the order of magnitude, not a promise about your working set.
Related: embedding models that fit a 1 GB VPS, Weaviate against Vespa in Docker, SQLite FTS5 for keyword search without a service, and why PDF text arrives without word boundaries.
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.