Skip to content

febryandana/ceph-calculator

Repository files navigation

Ceph Storage Calculator

A React-based calculator for estimating storage requirements in Ceph clusters.

⚠️ Beware: AI spaghetti code

Features

  • Multiple configuration modes:
    • Erasure Coding (EC) configuration
    • Replication configuration
    • Mixed storage configuration
    • Server hardware specifications
  • Real-time calculation results
  • Exportable configuration presets
  • Responsive UI with Tailwind CSS

Installation

Prerequisites

  • Node.js (v18+)
  • npm (v9+)
  • Docker (optional)

Local Development

npm install
npm run dev

Docker Setup

# Development
docker-compose -f compose-development.yaml up

# Production
docker-compose up

Usage

  1. Select your configuration type from the sidebar
  2. Adjust parameters using the input fields
  3. View real-time results in the calculation table
  4. Save/load configurations using the preset manager

Configuration

The calculator supports several configuration types:

EC Configuration

Configure erasure coding K+M parameters

Replication Configuration

Set replication factors and failure domains

Mixed Storage

Combine different storage tiers with custom ratios

Development Setup

This project uses:

  • Vite for bundling
  • Tailwind CSS for styling
  • PostCSS for CSS processing

Scripts

# Start dev server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

License

MIT License - see LICENSE for details

About

Storage Calculator for Ceph Cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors