Files
Ceph-Calculator/README.md
𝓜𝓪𝓬𝓮™ c04a651b8d Port backend to Node.js
2025-06-11 14:07:20 +02:00

89 lines
2.3 KiB
Markdown

# Ceph Max Storage Calculator
A modern web application for calculating the maximum allowed storage usage in a Ceph cluster.
## Features
- Calculation of maximum storage usage based on Ceph documentation
- Support for Replication and Erasure Coding
- Dynamic addition and removal of nodes and OSDs
- User-friendly interface with modern design
- Dark/Light Mode support
- Export/Import of configurations
- PDF report generation
- Responsive design for all devices
- Fault tolerance analysis for nodes and OSDs
## Installation
1. Clone repository:
```
git clone <repository-url>
cd ceph-calculator
```
2. Install Node.js dependencies:
```
npm install
```
3. Start application:
```
npm start
```
5. Open in a browser: `http://localhost:5000`
## Usage
1. Select the replication type: Replication or Erasure Coding
2. Enter the corresponding parameters:
- For Replication: Number of replicas and min_size
- For Erasure Coding: k (data chunks) and m (coding chunks)
3. Add nodes and configure their OSDs with appropriate storage sizes
4. Select the desired storage unit (GB/TB)
5. Click on "Calculate Capacity" to see the result
6. Optional: Export the configuration or generate a PDF report
## Technology
- Backend: Node.js with Express
- Frontend:
- Alpine.js for reactive user interface
- Tailwind CSS for modern design
- HTMX for interactive elements
- Dark/Light Mode with Tailwind CSS
- PDF generation with pdfkit
- Responsive design for all devices
## Detailed Features
### Replication
- Configurable number of replicas (1-10)
- Adjustable min_size for I/O operations
- Automatic calculation of fault tolerance
### Erasure Coding
- Configurable k/m values
- Optimized storage usage
- Fault tolerance analysis
### Fault Tolerance Analysis
- Node fault tolerance
- OSD fault tolerance
- Multi-node fault tolerance
- Detailed information about storage usage after failures
### User-Friendliness
- Intuitive user interface
- Dark/Light Mode
- Tooltips with explanations
- Responsive design
- Export/Import of configurations
- PDF report generation
## Note
The calculations are based on general recommendations from the Ceph documentation and
serve as a guideline. For precise capacity planning, you should consult the Ceph documentation
and consider your specific cluster requirements.