跳到正文
Skillpedia
数据库40k · #7369

qdrant-vertical-scaling

它能做什么

提升现有 Qdrant 服务器的容量(内存、CPU、磁盘)。这比增加新服务器要简单得多。

适用场景

  • ✓当当前服务器的内存或 CPU 快不够用时。
  • ✓如果你想避免管理多台服务器带来的复杂性。
  • ✓想在不增加机器的情况下提升性能时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/vertical-scaling/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何增加 Qdrant 服务器的内存?”

每周 5 个新技能,1 分钟读完。

工作原理

你需要提升运行 Qdrant 的那台服务器的资源。如果你使用的是 Qdrant Cloud,可以在在线控制台中完成操作。如果是自己安装的,则需要增加虚拟机或容器的资源。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

What to Do When Qdrant Needs to Scale Vertically

Vertical scaling means increasing CPU, RAM, or disk on existing nodes rather than adding more nodes. This is the recommended first step before considering horizontal scaling. Vertical scaling is simpler, avoids distributed system complexity, and is reversible.

  • Vertical scaling for Qdrant Cloud is done through the Qdrant Cloud Console
  • For self-hosted deployments, resize the underlying VM or container resources

When to Scale Vertically

Use when: current node resources (RAM, CPU, disk) are insufficient, but the workload doesn't yet require distribution.

  • RAM usage approaching 80% of available memory (OS page cache eviction starts, severe performance degradation)
  • CPU saturation during query serving or indexing
  • Disk space running low for on-disk vectors and payloads
  • A single node can handle up to ~100M vectors depending on dimensions and quantization
  • For non-production workloads, which are tolerant to single-point-of-failure and don't require high availability

How to Scale Vertically in Qdrant Cloud

Vertical scaling is managed through the Qdrant Cloud Console.

  • Log into Qdrant Cloud Console or use CLI tool
  • Select the cluster to resize
  • Choose a larger node configuration (more RAM, CPU, or both)
  • The upgrade process involves a rolling restart with no downtime if replication is configured
  • Ensure replication_factor: 2 or higher before resizing to maintain availability during the rolling restart

Important: Scaling up is straightforward. Scaling down requires care -- if the working set no longer fits in RAM after downsizing, performance will degrade severely due to cache eviction. Always load test before scaling down.

RAM Sizing Guidelines

RAM is the most critical resource for Qdrant performance. Use these guidelines to right-size.

  • Exact estimation of RAM usage is difficult; use this simple approximate formula: num_vectors * dimensions * 4 bytes * 1.5 for full-precision vectors in RAM
  • With scalar quantization: divide by 4 (INT8 reduces each float32 to 1 byte) Quantization
  • With binary quantization: divide by 32 Binary quantization
  • Add overhead for HNSW index (~20-30% of vector data), payload indexes, and WAL
  • Reserve 20% headroom for optimizer operations and OS cache
  • Monitor actual usage via Grafana/Prometheus before and after resizing Monitoring

When Vertical Scaling Is No Longer Enough

Recognize these signals that it's time to go horizontal:

  • Data volume exceeds what a single node can hold even with quantization and mmap
  • IOPS are saturated (more nodes = more independent disk I/O)
  • Need fault tolerance (requires replication across nodes)
  • Need tenant isolation via dedicated shards
  • Single-node CPU is maxed and query latency is unacceptable
  • Next vertical scaling step is the largest available node size. You might need to be able to temporarily scale up to the larger node size to do batch operations or recovery. If you are already at the largest node size, you won't be able to do that.

When you hit these limits, see Horizontal Scaling for guidance on sharding and node planning.

What NOT to Do

  • Do not scale down RAM without load testing first (cache eviction = severe latency degradation that can last days)
  • Do not ignore the 80% RAM threshold (performance cliff, not gradual degradation)
  • Do not skip replication before resizing in Cloud (rolling restart without replicas = downtime)
  • Do not jump to horizontal scaling before exhausting vertical options (adds permanent operational complexity)
  • Do not assume more CPU always helps (IOPS-bound workloads won't improve with more cores)
常见问题

什么是“纵向扩展”?

指的是通过增加内存、CPU 或磁盘空间,让单台服务器变得更强大,而不是增加服务器的数量。

什么时候应该考虑增加服务器(横向扩展)?

当即使是能买到的最强单台服务器也无法容纳所有数据,或者工作量大到多台服务器协同工作会更快时,就该考虑横向扩展。

提升资源之后,可以再降低服务器配置吗?

要非常小心。未经测试就减少内存,可能会让系统变得非常慢。降低资源后,一定要测试一下性能。

详情

作者的原始描述

Guides Qdrant vertical scaling decisions. Use when someone asks 'how to scale up a node', 'need more RAM', 'upgrade node size', 'vertical scaling', 'resize cluster', 'scale up vs scale out', or when memory/CPU is insufficient on current nodes. Also use when someone wants to avoid the complexity of horizontal scaling.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7369
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能