Index of every page on this site: llms.txt
All skills
github avatar

/scaling-qps

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

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'.

  • 1 file
  • 3.5 KB
  • Updated 7 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/github/awesome-copilot/scaling-qps

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈59 tokens for metadata: the name and description. ≈834 when used: this file.

Description uses 3.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈242 characters, or 3.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
  • qdrant
  • qps
  • throughput
  • scaling
  • search
  • performance-tuning
  • replication
  • vector-database
  • disk-io

README badge

README badge for github/awesome-copilot/scaling-qps

Guides Qdrant query throughput scaling through segment tuning, batch search API, read replicas, and disk I/O optimization. Covers single-node performance tuning (quantization, segment size, update throttling) and horizontal scaling with replication for CPU-saturated deployments.

Generated from the current SKILL.md.

How do I increase Qdrant query throughput (QPS)?
Start by tuning a single node: use fewer, larger segments (default_segment_number: 2), enable quantization with always_ram=true, and use the batch search API. If CPU remains saturated after tuning, scale horizontally with read replicas (replication_factor: 2+) to distribute query load.
Can I optimize for both throughput and latency at the same time?
No. Throughput and latency are opposite tuning directions and cannot be optimized simultaneously on the same node. You must choose which is your priority.
What should I do if disk I/O is the bottleneck?
First, upgrade to provisioned IOPS or local NVMe. Then enable io_uring on Linux (kernel 5.11+), use global rescoring for quantized vectors, and increase search thread count above the default (cpu_count - 1). If still saturated, scale horizontally since each node adds independent IOPS.
How do read replicas help with throughput?
Shard replicas distribute read load across nodes, with each replica adding independent query capacity without requiring re-sharding. Use replication_factor: 2+ and route reads to replicas.
Should I use many small segments for high throughput?
No. Many small segments increase per-query overhead and degrade throughput. Use fewer, larger segments instead.

Generated from the current SKILL.md. These answers refresh after source changes.