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

/horizontal-scaling

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

Diagnoses and guides Qdrant horizontal scaling decisions. Use when someone asks 'vertical or horizontal?', 'how many nodes?', 'how many shards?', 'how to add nodes', 'resharding', 'data doesn't fit', or 'need more capacity'. Also use when data growth outpaces current deployment.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈75 tokens for metadata: the name and description. ≈665 when used: this file.

Description uses 3.8% 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 ≈307 characters, or 3.8%.

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.

What to Do When Qdrant Needs More Capacity

Vertical first: simpler operations, no network overhead, good up to ~100M vectors per node depending on dimensions and quantization. Horizontal when: data exceeds single node capacity, need fault tolerance, need to isolate tenants, or IOPS-bound (more nodes = more independent IOPS).

Most basic distributed configuration

  • 3 nodes, 3 shards with replication_factor: 2 for zero-downtime scaling

Minimum of 3 nodes is important for consensus and fault tolerance. With 3 nodes, you can lose 1 node without downtime. With 2 nodes, losing 1 node causes downtime for collection operations. Replication factor of 2 means each shard has 1 replica, so you have 2 copies of data. This allows for zero-downtime scaling and maintenance. With replication_factor: 1, zero-downtime is not guaranteed even for point-level operations, and cluster maintenance requires downtime.

Choosing number of shards

Shards are the unit of data distribution. More shards allows more nodes and better distribution, but adds overhead. Fewer shards reduces overhead but limits horizontal scaling.

For cluster of 3-6 nodes the recommended shard count is 6-12. This allows for 2-4 shards per node, which balances distribution and overhead.

Changing number of shards

Use when: shard count isn't evenly divisible by node count, causing uneven distribution, or need to rebalance.

Resharding is expensive and time-consuming, it should be used as a last resort if regular data distribution is not possible. Resharding is designed to be transparent for user operations, updates and searches should still work during resharding with some small performance impact.

But resharding operation itself is time-consuming and requires to move large amounts of data between nodes.

  • Available in Qdrant Cloud Resharding
  • Resharding is not available for self-hosted deployments.

Better alternatives: over-provision shards initially, or spin up new cluster with correct config and migrate data.

What NOT to Do

  • Do not jump to horizontal before exhausting vertical (adds complexity for no gain)
  • Do not set shard_number that isn't a multiple of node count (uneven distribution)
  • Do not use replication_factor: 1 in production if you need fault tolerance
  • Do not add nodes without rebalancing shards (use shard move API to redistribute)
  • Do not scale down RAM without load testing (cache eviction causes days-long latency incidents)
  • Do not hit the collection limit by using one collection per tenant (use payload partitioning)

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
  • DevOps
  • qdrant
  • scaling
  • distributed-systems
  • sharding
  • replication
  • kubernetes
  • capacity-planning
  • vector-database

README badge

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

Guides Qdrant horizontal scaling decisions by diagnosing when to add nodes, how many shards to configure, and how to resharding if needed. Covers the 3-node minimum setup with replication factor 2, shard-to-node ratios for 3-6 node clusters, and when resharding is worth the cost versus other alternatives.

Generated from the current SKILL.md.

When should I choose horizontal scaling over vertical scaling for Qdrant?
Choose horizontal when data exceeds a single node's capacity (typically >100M vectors), you need fault tolerance, want to isolate tenants, or are IOPS-bound. Vertical scaling is simpler and has no network overhead, so exhaust it first.
What is the minimum cluster configuration for production?
3 nodes with 3 shards and replication_factor: 2. This allows you to lose one node without downtime and guarantees zero-downtime scaling and maintenance.
How many shards should I create for a 3-6 node cluster?
Use 6-12 shards to achieve 2-4 shards per node, which balances data distribution and overhead.
Is resharding available for self-hosted Qdrant deployments?
No. Resharding is only available in Qdrant Cloud. For self-hosted, over-provision shards initially or migrate data to a new cluster with the correct configuration.
What replication factor should I use in production?
Use replication_factor: 2 (or higher) to ensure fault tolerance and zero-downtime operations. A replication_factor of 1 does not guarantee zero-downtime even for point-level operations.

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