Skip to content

Add interactive TCO calculator for ThemisDB cost comparison - #261

Merged
makr-code merged 5 commits into
developfrom
copilot/develop-tco-calculator
Jan 7, 2026
Merged

makr-code merged 5 commits into
developfrom
copilot/develop-tco-calculator

Conversation

Copilot AI commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

Implements an interactive web-based TCO (Total Cost of Ownership) calculator to compare ThemisDB costs against cloud hyperscalers over 3 years, with focus on AI/LLM workload cost savings.

Implementation

Core Files (/tools/tco-calculator/)

  • index.html - 16-parameter input form, responsive layout, tabbed results view
  • app.js - TCOCalculator class with edition auto-selection, cost projections, ROI calculation
  • styles.css - Mobile-first responsive design, CSS Grid/Flexbox, accessibility features
  • README.md - Calculation methodology, usage instructions, customization guide

Cost Model

  • ThemisDB: Infrastructure + personnel (30% overhead) + licenses (€0-50k/yr) + operations
  • Hyperscaler: Pay-per-request (€0.00025) + storage (1.5x replication) + network egress + AI APIs
  • AI/LLM: Native llama.cpp (+€2k/mo GPU) vs external APIs (€5k/mo) = €108k savings over 3 years

Key Features

  • Edition selection: Minimal (<100k req/day), Community (<1M), Enterprise (≥1M or 99.99% SLA)
  • 20% annual data growth projection
  • HA server calculation: max(MIN_SERVERS_HA, dataSize/GB_PER_SERVER, requests/REQUESTS_PER_SERVER_DAY) * peakLoadFactor
  • Export to PDF/CSV, print support
  • Works offline (Chart.js optional)

Configuration Constants (17 total)

const CONFIG = {
    DATA_GROWTH_RATE: 0.20,
    PERSONNEL_OVERHEAD: 1.30,
    THEMISDB_ENTERPRISE_LICENSE: 50000,
    GPU_COST_MONTHLY: 2000,
    MIN_SERVERS_HA: 2,
    GB_PER_SERVER: 1000,
    REQUESTS_PER_SERVER_DAY: 10000000,
    HA_REDUNDANCY_MULTIPLIER: 1.5,
    // ...
};

Example Result

Scenario: 1M requests/day, 500GB data, AI enabled

  • ThemisDB: €2.67M (Infrastructure: €185k, Personnel: €2.1M, License: €150k, Ops: €210k)
  • Hyperscaler: €638k (Compute: €274k, Storage: €3k, Network: €515, AI APIs: €180k)
  • AI cost delta: ThemisDB €72k (GPU) vs Hyperscaler €180k (APIs) = €108k savings

Screenshot

TCO Calculator

Interactive calculator with real-time projections, detailed breakdowns, and automated insights

Original prompt

TCO-Rechner für ThemisDB entwickeln (Website, interaktiv) HTML, JavaScript best-practice


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Jan 7, 2026
Copilot AI changed the title [WIP] Add interactive TCO calculator for ThemisDB Add interactive TCO calculator for ThemisDB cost comparison Jan 7, 2026
Copilot AI requested a review from makr-code January 7, 2026 08:00
@makr-code
makr-code requested a review from Copilot January 7, 2026 10:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an interactive web-based TCO (Total Cost of Ownership) calculator to compare ThemisDB costs against cloud hyperscalers over a 3-year period, with special emphasis on AI/LLM workload cost savings.

Key Changes:

  • Implements a 16-parameter input form with automatic edition selection (Minimal, Community, Enterprise)
  • Calculates comprehensive costs including infrastructure, personnel, licenses, and operations
  • Features interactive visualizations, detailed breakdowns, and automated insights with export capabilities

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tools/tco-calculator/index.html Interactive form with 16 input parameters, responsive layout, and tabbed results view
tools/tco-calculator/app.js TCOCalculator class implementing cost calculations, ROI analysis, and chart generation
tools/tco-calculator/styles.css Responsive CSS with mobile-first design, CSS Grid/Flexbox layout, and accessibility features
tools/tco-calculator/README.md Comprehensive documentation covering methodology, usage instructions, and customization guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@makr-code
makr-code marked this pull request as ready for review January 7, 2026 14:36
@makr-code
makr-code merged commit 545efa4 into develop Jan 7, 2026
@makr-code

Copy link
Copy Markdown
Owner

@copilot kann der Code so angepasst werden dass er auch in wordpress funktioniert bzw. gibt es wordpress-plugins mit dem wir das auch umsetzen können?

@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
@makr-code makr-code mentioned this pull request Mar 12, 2026
9 tasks
Copilot AI added a commit that referenced this pull request May 11, 2026
…HMAC/embedding stubs

- GGUFMetadata (stub #259): add HmacFn type alias + setHmacFn() static API;
  sign()/verify() delegate to injected fn when set, fall back to XOR stub;
  fail-closed on fn exception; source comments updated from #173 → #259

- FlareRetrieval (stub #260): add EmbeddingQueryFn type alias + setEmbeddingQueryFn()
  static API + buildQueryEmbedding() method; string buildQuery() path retained
  as documented fallback; fail-closed on fn exception

- TensorRAGPipeline (stub #261): add EmbeddingQueryFn + setEmbeddingQueryFn()
  static API; step() populates RAGDecision::flare_query_embedding when fn set
  and FLARE triggers; fail-closed on fn exception

- STUB_INVENTORY.md: 21 new entries (#259–#277, with #263 as a/b/c subtypes);
  header updated to 272 entries / 238 resolved / 34 active; source ID conflicts
  for AR-01 (#172→#265), AR-02 (#177→#266), mmap-bridge (#176→#270),
  fingerprint-graph (#174→#276) noted and source comments updated

- All three bridges follow the gpu_tensor.cpp pattern: static function-local
  mutex + static function-local std::function storage; thread-safe getter/setter

Co-authored-by: Copilot <[email protected]>

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request Aug 31, 2026
Tensor module:
- compression_strategy.cpp: expand bare TODO:40 and TODO:306 to full
  STUB/SIMULATION NOTE templates (STUB #CS-01, STUB #CS-02)
- tensor_routing_strategy.cpp: promote bare TODO:79, TODO:94, TODO:283
  to TODO(tracked) references with ROADMAP cross-links
- tensor/ROADMAP.md: add [~] entries for CS-01, CS-02, and routing TODOs

LLM module:
- ssm_state_rocksdb_store.cpp:261: add tracking comment directing to
  src/llm/ROADMAP.md per Wave 3 serialization TODO rule
- ssm_stub_plugin.cpp: add complete STUB/SIMULATION NOTE template before
  SyntheticSSMStub constructor (PoC dataflow validation stub)
- llm_plugin_manager.cpp:668: add STUB/SIMULATION NOTE (STUB #LPM-01)
  to THEMIS_LLAMA_CPP_STUB_MODE block
- llm/ROADMAP.md: add [~]/[I] Wave 3 tracking entries

Acceleration module:
- break_even_validator.cc:180: add tracking NOTE comment for Prometheus
  metrics on BreakEvenDecision::ToString / CacheEntry::IsExpired /
  BreakEvenValidator constructor (lines 184, 194, 213)
- acceleration/ROADMAP.md: add [~] entry for BreakEvenValidator
  Prometheus metrics integration — Target Q2 2027

Already-documented gaps confirmed (no change required):
- adapter_repository.cpp, tensor_butterfly_operator.cpp,
  tensor_core_bridge.cpp, tensor_index_manager.cpp,
  tensor_mmap_bridge.cpp, utr_converter.cpp: STUB notes already complete
- streaming_window.cpp TODOs: all marked RESOLVED
- knowledge_base.cpp, olap.cpp, process_mining.cpp: STUB/SIMULATION
  NOTE blocks already complete
- nccl/opencl/oneapi/vulkan/ai_hardware_dispatcher: STUB templates
  already complete with #ifdef gates and error returns
- embedded_llm_stub.cpp, inference_engine_enhanced.cpp (wave 10
  STUB #261/#262 closed), ggml_tensor_bridge.cpp,
  tensor_compaction_filter.cpp, backup_manager.cpp: all already
  documented or production-ready

Co-authored-by: makr-code <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants