New to Claude Skills? Learn how to install them →

github on GitHub

Qdrant Scaling QPS

OfficialFree

Optimize Qdrant for higher query throughput.

Get this skill

Free · Opens the source repo

What Qdrant Scaling QPS does

Qdrant Scaling QPS provides a comprehensive guide for optimizing query throughput in Qdrant, a vector search engine. This skill is designed for developers and data engineers who need to increase the number of queries per second (QPS) their Qdrant instance can handle. It addresses common challenges associated with scaling query throughput, such as managing disk I/O and optimizing segment sizes, while also highlighting the trade-offs between throughput and latency.

The skill outlines specific performance tuning strategies, such as using fewer and larger segments to reduce overhead, enabling quantization to minimize disk I/O, and utilizing the batch search API to improve efficiency. It also emphasizes the importance of configuring update workloads to prevent degradation of read performance and provides guidance on horizontal scaling through read replicas to distribute load effectively.

Further, the skill discusses potential bottlenecks related to disk I/O and offers solutions like upgrading to provisioned IOPS or using io_uring for improved performance. It also warns against common pitfalls, such as attempting to optimize both throughput and latency on the same node or running at high RAM usage, which can lead to performance degradation. This skill serves as a valuable resource for anyone looking to maximize the performance of their Qdrant deployment.

When to use it

Use this skill when you need to scale your Qdrant instance to handle more concurrent queries or improve overall query performance.

When not to use it

This skill is not suitable for users looking to optimize latency alongside throughput, as these goals are often conflicting on the same node.

What you can build with it

Increasing Query Capacity

When your Qdrant instance is struggling to handle concurrent queries, this skill provides actionable steps to boost throughput.

Optimizing Performance for Large Datasets

For projects dealing with large datasets, this skill helps in tuning Qdrant for efficient query handling and resource management.

Preparing for High Traffic Applications

Use this skill to ensure your Qdrant deployment can handle spikes in query traffic without performance degradation.

How to install Qdrant Scaling QPS

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/scaling-qps --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by github

Scaling for Query Throughput (QPS)

Throughput scaling means handling more parallel queries per second. This is different from latency - throughput and latency are opposite tuning directions and cannot be optimized simultaneously on the same node.

High throughput favors fewer, larger segments so each query touches less overhead.

Performance Tuning for Higher RPS

Minimize impact of Update Workloads

  • Configure update throughput control (v1.17+) to prevent unoptimized searches degrading reads Low latency search
  • Set optimizer_cpu_budget to limit indexing CPUs (e.g. 2 on an 8-CPU node reserves 6 for queries)
  • Configure delayed read fan-out (v1.17+) for tail latency Delayed fan-outs

Horizontal Scaling for Throughput

If a single node is saturated on CPU after applying the tuning above, scale horizontally with read replicas.

  • Shard replicas serve queries from replicated shards, distributing read load across nodes
  • Each replica adds independent query capacity without re-sharding
  • Use replication_factor: 2+ and route reads to replicas Distributed deployment

See also Horizontal Scaling for general horizontal scaling guidance.

Disk I/O Bottlenecks

If it is not possible to keep all vectors in RAM, disk I/O can become the bottleneck for throughput. In this case:

  • Upgrade to provisioned IOPS or local NVMe first. See impact of disk performance to vector search in Disk performance article
  • Use io_uring on Linux (kernel 5.11+) io_uring article
  • In case of quantized vectors, prefer global rescoring over per-segment rescoring to reduce disk reads. Example in the tutorial
  • Configure higher number of search threads to parallelize disk reads. Default is cpu_count - 1, which is optimal for RAM-based search but may be too low for disk-based search. See configuration reference
  • If still saturated, scale out horizontally (each node adds independent IOPS)

What NOT to Do

  • Do not expect to optimize throughput and latency simultaneously on the same node
  • Do not use many small segments for throughput workloads (increases per-query overhead)
  • Do not scale horizontally when IOPS-bound without also upgrading disk tier
  • Do not run at >90% RAM (OS cache eviction = severe performance degradation)

Frequently asked questions about Qdrant Scaling QPS

Similar skills