https://github.com/shah91n/weaviate-memory-cpu-calculator
Weaviate Memory & CPU Calculator Resource planning tool based on official Weaviate documentation
https://github.com/shah91n/weaviate-memory-cpu-calculator
weaviate weaviatedb
Last synced: about 1 month ago
JSON representation
Weaviate Memory & CPU Calculator Resource planning tool based on official Weaviate documentation
- Host: GitHub
- URL: https://github.com/shah91n/weaviate-memory-cpu-calculator
- Owner: Shah91n
- License: mit
- Created: 2025-08-20T12:03:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-08-20T12:22:01.000Z (about 2 months ago)
- Last Synced: 2025-08-20T14:26:08.561Z (about 2 months ago)
- Topics: weaviate, weaviatedb
- Language: Python
- Homepage: https://weaviate-memory-cpu-calculator.streamlit.app
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# Weaviate Memory & CPU Calculator
**๐ฏ Resource planning tool for Weaviate vector database deployments**
Visit Weaviate Memory & CPU Calculator Web AppBeginner-friendly calculator based on [official Weaviate documentation](https://weaviate.io/developers/weaviate/concepts/resources) to help you plan memory, CPU, and storage requirements for your vector database deployment.
## ๐ Features
### โ **Calculations**
- **Memory formula** with 2x GC overhead
- **HNSW calculation** (1.5x vs 2x connections for better accuracy)
- **CPU formula** from Weaviate benchmark docs (1000ms รท latency ร 80% efficiency)
- **All compression methods** supported (PQ, BQ, SQ, RQ)### ๐ **User-Friendly Interface**
- **Step-by-step breakdowns** for Memory, CPU, and Disk calculations
- **Visual charts** showing memory composition and compression savings
- **Optimization tips** based on your configuration### ๐ **Comprehensive Planning**
- **Memory requirements** with and without compression
- **CPU calculations** based on target QPS and latency
- **Disk storage estimates**
- **Deployment recommendations** (Docker, Kubernetes, Cloud)### ๐๏ธ **All Compression Methods**
- **Product Quantization (PQ)**: 85% memory reduction, best balance
- **Binary Quantization (BQ)**: 97% memory reduction, maximum savings
- **Scalar Quantization (SQ)**: 75% memory reduction, fast compression
- **Rotational Quantization (RQ)**: 75% memory reduction, no training required## ๐ Quick Start
### Installation
1. **Clone the repository:**
```bash
git clone https://github.com/Shah91n/Weaviate-Memory-CPU-Calculator.git
cd weaviate-calculator
```2. **Install dependencies:**
```bash
pip install -r requirements.txt
```3. **Run the application:**
```bash
streamlit run app.py
```4. **Open in browser:** http://localhost:8501
### Docker Deployment
```bash
# Build the image
docker build -t weaviate-calculator .# Run the container
docker run -p 8501:8501 weaviate-calculator
```### ๐ **Related Tools**
- **[Weaviate Disk Storage Calculator](https://weaviate-disk-calculator.streamlit.app/)** - Detailed disk usage calculations
- **[Source Code](https://github.com/Shah91n/Weaviate-Disk-Storage-Calculator)** - Comprehensive disk planning tool## ๐ Documentation References
1. **[Resource Planning](https://weaviate.io/developers/weaviate/concepts/resources)** - Memory and CPU formulas
2. **[Vector Indexing](https://weaviate.io/developers/weaviate/concepts/vector-indexing)** - HNSW parameters
3. **[Compression Guide](https://weaviate.io/developers/weaviate/starter-guides/managing-resources/compression)** - All compression methods
4. **[ANN Benchmarks](https://weaviate.io/developers/weaviate/benchmarks/ann)** - CPU calculation source## ๐ค Contributing
We welcome contributions!
## ๐ License
MIT License - See LICENSE file for details
**๐ก Made for the community**
Help others plan their vector database deployments with confidence. Star โญ this repo if it helped you!