Exploring Distributed Vector Databases Performance on HPC Platforms: A Study with Qdrant

Seth Ockerman, Amal Gueroudji, Song Young Oh, Robert Underwood, Nicholas Chia, Kyle Chard, Robert B. Ross, Shivaram Venkataraman · DOI

TL;DR

This paper investigates the performance of distributed vector databases, specifically Qdrant, on High-Performance Computing (HPC) platforms. By conducting an empirical study using a realistic biological text workload on the Polaris supercomputer, the authors provide crucial insights into insertion, index-building, and query performance, highlighting challenges and opportunities for optimizing these systems for scientific applications.

What Problem Does This Paper Address?

Vector databases are becoming indispensable for modern AI workflows, particularly for tasks like retrieval-augmented generation (RAG), which grounds large language models in external knowledge. These databases enable efficient similarity searches over high-dimensional vector representations of data (embeddings). However, as AI workloads increasingly move to HPC systems, there's a significant knowledge gap regarding how distributed vector databases perform in these complex environments. HPC systems have unique characteristics like specialized interconnects, parallel file systems, and deep memory hierarchies, which can impact database performance. This paper aims to bridge this gap by empirically evaluating a popular distributed vector database (Qdrant) on an HPC platform, providing a foundational understanding for future research and optimization in this domain.

Methods

The authors conducted an empirical study of Qdrant, a distributed vector database, on the Polaris supercomputer. Their methodology involved:

  • Workload Generation: They created a realistic biological-text workload by generating embeddings from the peS2o corpus using the Qwen3-Embedding-4B model. This mimics a common scenario in scientific research where models need to access and process large collections of documents.
  • System Configuration: They deployed Qdrant on Polaris, utilizing up to 32 workers distributed across 8 compute nodes.
  • Performance Evaluation: They systematically evaluated Qdrant's performance across three key operations:
  • Embedding Generation: While not directly a Qdrant operation, they measured the time taken to generate embeddings, which is a prerequisite for populating the database.
  • Data Insertion: They measured the time to insert embeddings into the Qdrant cluster, tuning parameters like batch size and concurrency.
  • Index-Building: They evaluated the time required to build indexes (specifically HNSW) on the inserted data.
  • Query Performance: They measured the latency of similarity search queries using their generated biological workload.
  • Parameter Tuning: For insertion and query operations, they performed tuning to find optimal batch sizes and concurrency levels to maximize performance.

Datasets

  • peS2o Corpus: This dataset, comprising up to 8 million full-text papers, was used as the source for generating embeddings. It serves as a proxy for a large internal corpus of biological papers.
  • Newly Introduced Benchmark: The authors generated a scientific embedding dataset and query workload based on the peS2o corpus. This dataset and workload are released for future research.

Key Insights and Ideas

  • Embedding Generation Dominance: The time spent generating embeddings (model inference) is overwhelmingly the largest component of the overall workflow runtime, suggesting that optimizing embedding models is crucial for large-scale AI applications.
  • CPU Bottleneck in Insertion: For data insertion, the conversion of data into Qdrant's internal batch objects is CPU-bound and can be slower than the actual data upload. This indicates that multiprocessing might be more effective than asyncio for parallelizing this step.
  • Index Building is CPU-Intensive: Index construction on a single compute node saturates the CPU, even with a single worker. This suggests that offloading index building to GPUs could significantly improve performance and better utilize multi-worker setups.
  • HPC Scaling Challenges: While increasing the number of workers generally improves performance for index building, the benefits for query performance on their tested dataset size (80 GB) were marginal. This highlights that inter-worker communication overhead can overshadow the gains from parallelization, especially for smaller datasets.
  • Adaptive Scaling Potential: The results suggest that vector database systems on HPC platforms could benefit from adaptive scaling mechanisms that adjust based on data size to better manage communication overhead.

Key Results

  • Embedding Generation: Mean runtime for embedding generation was approximately 2417 seconds, with inference accounting for 98.5% of this time.
  • Data Insertion: Inserting the full dataset (≈80 GB) took approximately 8.22 hours with 1 worker, scaling down to 21.67 minutes with 32 workers.
  • Index-Building: A maximum speedup of 21.32x was observed when scaling from 1 to 32 workers for index construction. However, scaling from 1 to 4 workers yielded only a 1.27x speedup, indicating diminishing returns due to resource contention on shared compute nodes.
  • Query Performance: For a 1 GB dataset, query time reduced until a batch size of 16. In distributed tests, increasing the number of workers provided only marginal improvements for an 80 GB dataset, with speedups of up to 3.57x observed only when the dataset exceeded 30 GB.

Limitations and Future Work

  • Runtime Variability: The study did not focus on runtime variability or reproducibility, which is an important aspect for production systems.
  • CPU-Only Indexing: The evaluation of index building was limited to CPU-based construction. Future work should explore GPU-enabled index building.
  • Single System Evaluation: The study was conducted on a single HPC system (Polaris). A comprehensive, multi-system study is needed to fully characterize the design space of distributed vector databases on HPC platforms.
  • Dataset Size: The query performance results were limited by the tested dataset size. Further investigation with larger datasets is warranted.
  • Adaptive Scaling: The authors suggest that future work could explore adaptive scaling mechanisms for query performance.

Summary updated

BibTeX
@inproceedings{ockerman2025exploring,
  author = {Seth Ockerman and Amal Gueroudji and Song Young Oh and Robert Underwood and Nicholas Chia and Kyle Chard and Robert B. Ross and Shivaram Venkataraman},
  title = {{Exploring Distributed Vector Databases Performance on HPC Platforms: A Study with Qdrant}},
  booktitle = {Workshops @ SC},
  year = {2025},
  doi = {10.1145/3731599.3767404},
}
Figure