Skip to content
Back to skills

Horizontal Scaling

ASecurity

Use when diagnosing Qdrant capacity limits or deciding between vertical and horizontal scaling, including node, shard, replication, resharding, tenant-isolation, and fault-tolerance tradeoffs.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agentsgonodetestinggitapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add mouadja02/skills --skill horizontal-scaling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Horizontal Scaling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Horizontal Scaling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouadja02-horizontal-scaling/badge)](https://www.skillsdirectory.com/skills/mouadja02-horizontal-scaling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: horizontal-scaling
description: "Use when diagnosing Qdrant capacity limits or deciding between vertical and horizontal scaling, including node, shard, replication, resharding, tenant-isolation, and fault-tolerance tradeoffs."
version: "1.0.1"
source: "https://github.com/qdrant/skills"
attribution: "qdrant/skills by Qdrant"
---

> **Attribution:** Sourced from [qdrant/skills](https://github.com/qdrant/skills) by [Qdrant](https://qdrant.tech).

# What to Do When Qdrant Needs More Capacity

## When to Use

- Decide whether a Qdrant workload should scale vertically or horizontally.
- Plan node, shard, replication, resharding, or tenant-isolation changes.
- Diagnose capacity, IOPS, or fault-tolerance limits in a growing deployment.
- Do **not** activate for routine query tuning when the deployment still fits comfortably on one node.

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](https://skills.qdrant.tech/md/documentation/scaling/distributed_deployment/?s=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)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…