Skip to content
Hands-on course · 17 days

Vector database engineering on Kubernetes hands-on

You run Qdrant distributed, secured, monitored and backed up on Kubernetes, know from your own measurements what failures, load and too little memory do, and finally solve three incidents without a solution shown in advance – with a verified production-readiness checklist.

  • Free · no subscription
  • 17 days · 120–150 min each
  • 124 drills · with expected output

Companion code on GitHub

Day 2 · Drill 7: Creating and filling the collection
# on vdb1
$ jq '.result.config.optimizer_config.indexing_threshold' doku.json

Expected

10000

As a book · Edition 2026 · PDF and EPUB

The whole course to take with you, for reading away from the screen. Reading online stays free.

With Pro: as your book of the month Pro launches soon. With a free account you can join the Pro waitlist.
Leanpub · soon Amazon · soon

What you'll be able to do

  • Run Qdrant with Helm on k3s and Longhorn – distributed with shards, replicas and Raft – and prove replication from the cluster info instead of inferring it from the pod count
  • Trigger real failures and read them – deleted pod, hard node failure, full volume, network partition without quorum – and know what a timeout means for the data you wrote
  • Measure performance and capacity instead of guessing: p50/p95/p99, recall@10 against a ground truth (glove-100), HNSW parameters, quantization, memory per vector and OOM
  • Make a vector database production-ready – TLS, API keys, JWT, NetworkPolicies, Pod Security, Prometheus alerts with an SLO, snapshots to an S3 off-site store with measured RPO/RTO, Argo CD and upgrades – and compare pgvector and Milvus fairly

What you need

LabFour VMs with Ubuntu 24.04, SSH access and sudo on a shared network – a workbench with at least 8 vCPU/12 GB/80 GB (k3s server, embedding model, monitoring, S3), one data node with 8 vCPU/16 GB/80 GB and two with 2 vCPU/8 GB/30 GB each

BackgroundLinux in the terminal, Kubernetes basics (pods, StatefulSets, services, kubectl, Helm), reading curl and JSON, reading Python

InternetInternet access from the VMs for the downloads (k3s, Helm charts, images, the embedding model, glove-100 about 0.5 GB); no GPU, no cloud account

Prior knowledgeThe course is self-contained: cluster, storage, embedding model, test data and every failure are built in the course. It is for platform and SRE teams who have to operate a vector database – not for developers building an AI application.

Set up your labKubernetes locally · Lab VMs

Training plan

One day = one sitting. Every day ends with a checkpoint and a challenge. About 40 hours in total.

Training days

  1. Preparation The library – four VMs, one cluster, storage and an embedding modelset up access to four VMs, build a Kubernetes cluster with one server and three worker nodes from them, provide distributed block storage with Longhorn, run an embedding model in the cluster and create a Python workbench for measurements 120 min
  2. Day 1 Understanding vectors – embeddings, distances and exact searchsplit a real corpus from the Kubernetes documentation into sections, translate them into vectors with the embedding model in the cluster, recompute distance measures, search exactly and record 100 test questions with their exact best hits as the ground truth for the coming days 150 + 60 min
  3. Day 2 Qdrant with Helm – the first branchinstall Qdrant with the official Helm chart as a StatefulSet on a data node, set values deliberately (version, node, resources, storage, probes, telemetry), load the corpus from Day 1 as a collection, compare hits with exact search and prove that the data survives a pod restart 120 min
  4. Day 3 Storage – when the closed stacks are fullunderstand what Qdrant writes to its volume (WAL, segments), experience a full volume as a real incident, expand the volume during operation, bring Helm back in line with the cluster afterwards, and see why Longhorn does not return freed space by itself 120 min
  5. Day 4 HNSW and filters – signposts in the closed stacksmeasure the search quality of a vector database (recall@10), build the HNSW index and get to know its tuning knobs hnsw_ef, m and ef_construct with real numbers, search with filters and understand what a payload index is for 120 min
  6. Day 5 Distributed Qdrant – branches, shelves, second copiestake Qdrant from one to three pods, understand shards and replicas, prove replication instead of deriving it from the number of pods, measure writing and reading with one node missing 120 min
  7. Day 6 High availability – when a building closesunderstand the rules by which Kubernetes places and protects the Qdrant pods, and measure what search does during planned and unplanned failures – from a deleted pod to a node that no longer responds 120 min
  8. Day 7 Quorum and partition – when the line is cutuse iptables to cut off one Qdrant node from the rest, then all three from each other, and measure what reading, writing and Raft do – and what fits back together after healing 120 min
  9. Day 8 Performance – a rush at the lending deskmeasure throughput and response times (p50, p95, p99) with your own load generator, find the bottleneck, show the influence of batch size when ingesting, and measure on a public dataset with a ready-made ground truth what quantization costs and gains 150 min
  10. Day 9 Capacity and scaling – reading room, closed stacks and a new branchcalculate and verify how much memory a vector needs, understand where this memory sits in the pod, experience what a memory limit that is too tight does – first slow motion, then OOMKilled –, add a fourth Qdrant node, move a shard and cleanly remove a node again 150 min
  11. Day 10 Security – ID cards, seals and a gatekeepertake Qdrant from "anyone in the cluster may do anything" to "only those with an ID card, and only as much as necessary": API keys and read-only keys, short-lived JWTs for a single collection, TLS with cert-manager for clients and between the peers, NetworkPolicies and the Pod Security Standard restricted 150 min
  12. Day 11 Observability – the lending statisticsmonitor Qdrant with kube-prometheus-stack: read the metrics of a pod, let Prometheus query despite the key and TLS, ask questions in PromQL, define an SLO, write alerts and trigger them twice for real – through overload and through a failed node 150 min
  13. Day 12 Backup and DR – the off-site storeunderstand Qdrant snapshots and write them to an S3 off-site store outside the cluster, restore a fresh installation from it, measure RPO and RTO with a stopwatch, and distinguish Longhorn volume snapshots from them 150 min
  14. Day 13 pgvector – the branch in the city archiverun PostgreSQL with pgvector via CloudNativePG, load the same data as in Qdrant, build and measure HNSW and IVFFlat, recognize the filter trap and compare both systems with real numbers 150 min
  15. Day 14 Milvus – the big library with departmentsrun Milvus standalone with Helm, know its departments and dependencies, load and measure the same data, experience consistency levels and an object storage outage, and compare all three systems with real numbers 150 min
  16. Day 15 GitOps and upgrades – the approved planput Qdrant under the supervision of Argo CD without data loss, detect drift and have it reverted, roll out changes and upgrades via Git, roll back a failed upgrade and know the limits of a rollback 150 min
  17. Day 16 Final case – the city library in an emergencynarrow down and fix three real incidents without a solution shown in advance, measure the recovery of a deleted collection with RPO and RTO, and check the installation against a production readiness checklist 150 min

More