AGENT SKILL

增量规格同步

openspec-sync-specs

将变更中的增量规格(delta specs)同步到主规格。当用户希望用增量规格中的变更更新主规格,但不归档该变更时使用。

License 许可
MIT
所属仓库
Vortex375/seraph
最近更新
2026-11-08
Stars
★ 2
Forks
0

01 前言 Front Matter

name
qdrant-vertical-scaling
description
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.

03 SKILL.md 正文

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)

04 同仓库更多 Skills

Vortex375
Vortex375/seraph

智能体技能文档编写

writing-for-agents

为智能体编写文档。在创建或编辑技能(skill),或修改 AGENTS.md 或 CLAUDE.md 时使用。

AI 工程师智能体开发
★ 2
Vortex375
Vortex375/seraph

交互式Bash向导生成

wizard

生成交互式 bash 向导,引导人类逐步完成只有他们才能执行的步骤。适用于配置基础设施、设置凭证或 CI 密钥、引导操作不熟悉的第三方仪表板,或执行一次性迁移或割接。不要将其用于智能体自身可以执行的步骤。

SRE 工程师基础设施自动化
★ 2
Vortex375
Vortex375/seraph

大型任务决策路径规划

wayfinder

将庞大的工作量(超出单个智能体会话所能承载的范围)规划为问题跟踪器上共享的决策工单地图,并逐个解决,直到通往目的地的路径清晰。

项目经理任务规划与分解
★ 2
Vortex375
Vortex375/seraph

重述未被理解的信息

wait-what

停。上一条消息没有被理解:重新表达一下。

普通用户回复风格与输出控制
★ 2
Vortex375
Vortex375/seraph

问题与PR分诊处理

triage

通过分诊角色的状态机流转问题(issue)和外部 PR:分类、验证、必要时深入质询,并编写可供智能体直接使用的简报。

开源社区运营专员工单与问题跟踪管理
★ 2
Vortex375
Vortex375/seraph

计划规格拆解为工单

to-tickets

将计划、规格说明或当前对话拆解为一组曳光弹式可执行小工单,每个工单都声明其阻塞依赖,并发布到配置的跟踪器(本地以文本形式记录依赖关系,每个工单一个文件;在真实跟踪器上则使用原生阻塞链接)。

项目经理任务规划与分解
★ 2