qdrant-vertical-scaling
Skill này làm gì
Tăng sức chứa (bộ nhớ, CPU, ổ đĩa) của một máy chủ Qdrant đang có. Cách này đơn giản hơn việc thêm máy chủ mới.
Khi nào nên dùng
- ✓Khi máy chủ hiện tại sắp hết bộ nhớ hoặc CPU.
- ✓Khi bạn muốn tránh sự phức tạp của việc quản lý nhiều máy chủ.
- ✓Khi muốn cải thiện hiệu năng mà không cần thêm máy.
Liên kết skill
https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/vertical-scaling/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm thế nào để tăng bộ nhớ cho máy chủ Qdrant của tôi?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn tăng tài nguyên của máy chủ nơi Qdrant đang chạy. Nếu dùng Qdrant Cloud, bạn làm việc này qua bảng điều khiển trực tuyến. Nếu bạn tự cài đặt, bạn cần tăng tài nguyên của máy ảo hoặc container.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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: 2or 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.5for 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)
Câu hỏi thường gặp
“Tăng quy mô theo chiều dọc” (vertical scaling) là gì?
Nghĩa là làm cho một máy chủ mạnh hơn bằng cách thêm RAM, CPU hoặc dung lượng ổ đĩa, thay vì thêm nhiều máy chủ.
Khi nào nên cân nhắc thêm máy chủ (tăng quy mô theo chiều ngang)?
Khi một máy chủ, ngay cả máy mạnh nhất có thể, không còn đủ để chứa toàn bộ dữ liệu, hoặc khi khối lượng công việc lớn đến mức nhiều máy cùng làm việc sẽ nhanh hơn.
Có an toàn không khi giảm tài nguyên máy chủ sau khi đã tăng?
Bạn cần rất cẩn thận. Giảm bộ nhớ mà không kiểm tra có thể làm hệ thống chạy rất chậm. Luôn kiểm tra hiệu năng sau khi giảm tài nguyên.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 40k
- Vị trí xếp hạng
- #7369
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
acquire-codebase-knowledge
40kGiúp agent của bạn hiểu và ghi tài liệu cho một dự án mã nguồn có sẵn. Hữu ích khi đón thành viên mới hoặc nắm tổng quan về kiến trúc.
acreadiness-assess
40kGiúp agent của bạn đánh giá mức độ sẵn sàng cho AI của dự án và tạo báo cáo. Hữu ích để biết dự án đã sẵn sàng dùng công cụ AI đến đâu.
acreadiness-generate-instructions
40kGiúp agent của bạn tạo hướng dẫn cho công cụ AI dựa trên kết quả đánh giá. Hữu ích để cải thiện cách AI làm việc với mã và khắc phục các khoảng trống.
acreadiness-policy
40kGiúp agent của bạn xác định hoặc áp dụng chính sách đánh giá dự án bằng AI. Hữu ích để chuẩn hóa cách đánh giá dự án và đảm bảo tuân thủ.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.