From fdc591624d578d08ded1aced742fb8577a758f41 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 10 Jul 2025 14:45:58 +0200 Subject: [PATCH] price model is documented in the wiki --- .../templates/services/pricelist.html | 241 +----------------- 1 file changed, 3 insertions(+), 238 deletions(-) diff --git a/hub/services/templates/services/pricelist.html b/hub/services/templates/services/pricelist.html index 7b4db36..a3a0c0c 100644 --- a/hub/services/templates/services/pricelist.html +++ b/hub/services/templates/services/pricelist.html @@ -160,245 +160,10 @@

Complete Price List - All Service Variants

-
- -
-
- - - - -
-
-
Core Price Components
-
-
-
-
-
Compute Plan Price
-
-
-

- Source: Cloud provider's raw compute pricing
- Includes: vCPUs, RAM, base storage
- Varies by: Cloud provider, region, term length
- Data source: ComputePlan model with Price objects -

-
-
-
-
-
-
-
SLA Base
-
-
-

- Purpose: Fixed cost for service level guarantee
- Covers: Basic monitoring, alerting, support
- Varies by: Service level (Standard/Premium)
- Data source: VSHNAppCat model's sla_base field -

-
-
-
-
-
-
-
Units × SLA Per Unit
-
-
-

- Purpose: Variable cost based on scale
- Units: Replicas, workers, connections, etc.
- Scaling: Linear or tiered discount models
- Data source: VSHNAppCat.sla_per_unit × calculated units -

-
-
-
-
-
-
-
Add-ons
-
-
-

- Purpose: Required or optional additional services
- Types: Commercial licenses, additional features
- Pricing: Base fee or unit rate
- Data source: AddOn model (optional with mandatory=True) -

-
-
-
-
-
-
- - -
-
-
Pricing Formula Breakdown
-
- Final Price Calculation
- Compute Plan Price - + - SLA Base - + - Units × SLA Per Unit - + - Mandatory and Optional Add-ons - = - Final Price -
-
-
-
-
-
Variable Unit Types
-
    -
  • RAM - Memory (RAM) scaling
  • -
  • CPU - CPU (vCPU) scaling
  • -
  • USR - Users scaling
  • -
- Based on VSHNAppCatPrice.VariableUnit choices -
-
-
Add-on Types
-
    -
  • Base Fee - Fixed amount regardless of units
  • -
  • Unit Rate - Price per unit
  • -
- Based on VSHNAppCatAddon.AddonType choices -
-
-
Service Levels
-
    -
  • Best Effort - Basic service level
  • -
  • Guaranteed Availability - Premium service level
  • -
- Based on VSHNAppCatPrice.ServiceLevel choices -
-
-
-
-
-
- - -
-
-
Data Model Relationships
-
-
-
-
-
Core Models
-
    -
  • - ComputePlan - Defines vCPUs, RAM, storage specs -
  • -
  • - Price - Links to ComputePlan with amount, currency, term -
  • -
  • - VSHNAppCat - Defines SLA base, per-unit pricing, units -
  • -
  • - AddOn - Additional services with pricing models -
  • -
-
-
-
Calculation Logic
-
    -
  1. Load ComputePlan and associated Price
  2. -
  3. Find matching VSHNAppCat configuration
  4. -
  5. Calculate units based on service specifications
  6. -
  7. Apply discount model if configured
  8. -
  9. Add mandatory add-ons (base fee + unit rate)
  10. -
  11. Sum all components for final price
  12. -
-
-
-
-
-
-
- - -
-
-
Price Comparison System
-
-
-
-
-
External Comparisons
-
-
-

- Purpose: Compare against AWS, GCP, Azure, etc.
- Data source: ExternalPriceComparison model
- Matching: Similar specs (vCPUs, RAM, storage)
- Display: Shows price difference and percentage -

-
-
-
-
-
-
-
Internal Comparisons
-
-
-

- Purpose: Compare same service on different cloud providers
- Logic: Same VSHNAppCat config, different ComputePlan
- Matching: Exact service specs and SLA levels
- Display: Shows cost difference between providers -

-
-
-
-
-
-
- - -
-
- -
-
-
-
+ - +