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

/qdrant-scaling

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

Guides Qdrant scaling decisions. Use when someone asks 'how many nodes do I need', 'data doesn't fit on one node', 'need more throughput', 'cluster is slow', 'too many tenants', 'vertical or horizontal', 'how to shard', or 'need to add capacity'.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/qdrant-scaling

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

scaling-data-volumesliding-time-windowSKILL.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Scaling with a Sliding Time Window

Use when only recent data needs fast search -- social media posts, news articles, support tickets, logs, job listings. Old data either becomes irrelevant or can tolerate slower access.

Three strategies: shard rotation (recommended), collection rotation (when per-period config differs), and filter-and-delete (simplest, for continuous cleanup).

Shard Rotation (Recommended)

Use when: data has natural time boundaries (daily, weekly, monthly). Preferred because queries span all time periods in one request without application-level fan-out. User-defined sharding

  1. Create a collection with user-defined sharding enabled
  2. Create one shard key per time period (e.g., 2025-01, 2025-02, ..., 2025-06)
  3. Ingest data into the current period's shard key
  4. When a new period starts, create a new shard key and redirect writes
  5. Delete the oldest shard key outside the retention window
  • Deleting a shard key reclaims all resources instantly (no fragmentation, no optimizer overhead)
  • Pre-create the next period's shard key before rotation to avoid write disruption
  • Use shard_key_selector at query time to search only specific periods for efficiency
  • Shard keys can be placed on specific nodes for hot/cold tiering

Collection Rotation (Alias Swap)

Use when: you need per-period collection configuration (e.g., different quantization or storage settings). Collection aliases

  1. Create one collection per time period, point a write alias at the newest
  2. Query across all active collections in parallel, merge results client-side
  3. When a new period starts, create the new collection and swap the write alias Switch collection
  4. Drop the oldest collection outside the window

Trade-off vs shard rotation: allows per-collection config differences, but requires application-level fan-out and more operational overhead.

Filter-and-Delete

Use when: data arrives continuously without clear time boundaries, or you want the simplest setup.

  1. Store a timestamp payload on every point, create a payload index on it Payload index
  2. Filter to the desired window at query time using range condition Range filter
  3. Periodically delete expired points using delete-by-filter Delete points
  • Run cleanup during off-peak hours in batches (10k-50k points) to avoid optimizer locks
  • Deletes are not free: tombstoned points degrade search until optimizer compacts segments
  • Does not reclaim disk instantly (compaction is asynchronous)

Hot/Cold Tiers

Use when: recent data needs fast in-RAM search, older data should remain searchable at lower performance.

  • Shard rotation: place current shard key on fast-storage nodes, move older shard keys to cheaper nodes via shard placement. All queries still go through a single collection.
  • Collection rotation: keep current collection in RAM (always_ram: true), move older collections to mmap/on-disk vectors. Quantization

What NOT to Do

  • Do not use filter-and-delete for high-volume time-series with millions of daily deletes (use rotation instead)
  • Do not forget to index the timestamp field (range filters without an index cause full scans)
  • Do not use collection rotation when shard rotation would suffice (unnecessary fan-out complexity)
  • Do not drop a shard key or collection before verifying its period is fully outside the retention window
  • Do not skip pre-creating the next period's shard key or collection (write failures during rotation are hard to recover)

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 alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides comprehensive guidance on scaling Qdrant databases for various performance and data volume needs. All links and references target official Qdrant documentation or trusted repositories. No malicious code, data exfiltration, or prompt injection patterns were found.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

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
What it can do
Reads files
All 3 allowed tools
ReadGrepGlob
  • qdrant
  • vector-db
  • scaling
  • clustering
  • throughput
  • latency
  • sharding
  • capacity-planning

README badge

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

Diagnoses Qdrant scaling bottlenecks and recommends strategies for data volume, query throughput, latency, or result volume. Routes to specific sub-skills for data sharding, horizontal/vertical scaling tradeoffs, and performance tuning.

Generated from the current SKILL.md.

What scaling dimensions does this skill cover?
The skill addresses four distinct scaling goals: data volume (dataset exceeds single-node capacity), query throughput (handling more parallel queries), query latency (reducing single-query response time), and query volume (managing result set size). Each has different tuning strategies.
When should I use this skill?
Use it when facing questions like 'how many nodes do I need', 'data doesn't fit on one node', 'need more throughput', or 'cluster is slow'. It guides the decision between vertical and horizontal scaling based on your specific bottleneck.
Does this skill handle sharding decisions?
Yes. The skill provides guidance on sharding strategy as part of its capacity planning, though detailed sharding implementation is covered in the linked sub-skills for each scaling dimension.
Are throughput and latency scaling strategies the same?
No. The skill explicitly notes that scaling for throughput and latency are opposite tuning directions and may require different strategies.

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