Skip to content
Skillpedia
Databases40k · #5313

qdrant-scaling-qps

Helps your agent make Qdrant respond faster to searches. It's useful when you need to process many queries per second.

What it does

This guide helps increase the number of searches Qdrant can handle per second. It focuses on optimizing the system to manage more simultaneous requests, which is different from making each individual search faster.

When to use it

  • ✓When you need your system to respond to more searches at the same time.
  • ✓If searches are slow because many people are using the system at once.
  • ✓When configuring Qdrant to handle a high volume of requests.

Example of what to ask your AI

“How can I make Qdrant handle more queries per second?”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-qps/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-qps/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

To increase queries per second, you can adjust settings so Qdrant uses fewer resources per search, like grouping searches or using fewer database parts at once. If that's not enough, you can add more machines to share the workload.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add github/awesome-copilot --skill qdrant-scaling-qps

Or download just the file:

curl -L https://raw.githubusercontent.com/github/awesome-copilot/main/skills/qdrant-scaling/scaling-qps/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from 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)
FAQ

What's the difference between search speed (latency) and queries per second (throughput)?

Latency is the time it takes for a single search to be answered. Throughput is how many searches the system can answer in one second. Optimizing one can make the other worse.

What are 'segments' and why are fewer better for higher queries per second?

Segments are like files where data is organized. Having fewer, larger segments means Qdrant needs to access fewer files for each search, which is more efficient when the goal is to answer many searches quickly.

What is 'horizontal scaling'?

Horizontal scaling means adding more machines (or Qdrant instances) to distribute the work. This is useful when a single machine can no longer handle all requests, even after optimizations.

Details

Original description by the author

Guides Qdrant query throughput (QPS) scaling. Use when someone asks 'how to increase QPS', 'need more throughput', 'queries per second too low', 'batch search', 'read replicas', or 'how to handle more concurrent queries'.

repo: github/awesome-copilot

Popularity

GitHub stars
40k
Ranking position
#5313
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills