cost: bump rates to match actual Azure billing (~$65k/mo)
- Increased CPU/memory rates and per-VIN resource estimates - Added base infrastructure cost distribution across active VINs - Updated README with projected costs for 5000 vehicles - Image: fiskercloud.azurecr.io/cost:v6
This commit is contained in:
@@ -16,9 +16,9 @@ This service estimates the cost of running cloud services per VIN by:
|
||||
|
||||
| Activity Level | Messages/15min | CPU (cores) | Memory (GB) |
|
||||
|---------------|----------------|-------------|-------------|
|
||||
| Low | < 100 | 0.15 | 0.25 |
|
||||
| Medium | 100-1000 | 0.225 | 0.375 |
|
||||
| High | > 1000 | 0.30 | 0.50 |
|
||||
| Low | < 100 | 0.60 | 1.00 |
|
||||
| Medium | 100-1000 | 0.90 | 1.50 |
|
||||
| High | > 1000 | 1.20 | 2.00 |
|
||||
|
||||
These estimates account for the full data pipeline per vehicle:
|
||||
- Data ingestion (MQTT/HTTP endpoints)
|
||||
@@ -29,12 +29,20 @@ These estimates account for the full data pipeline per vehicle:
|
||||
- MongoDB document storage
|
||||
- API serving
|
||||
|
||||
### Base Infrastructure Costs
|
||||
|
||||
Shared infrastructure costs are distributed across active vehicles each collection interval:
|
||||
|
||||
| Component | Cloud ($/15min) | On-Prem ($/15min) |
|
||||
|-----------|-----------------|-------------------|
|
||||
| Storage, Event Hubs, Defender, monitoring | $7.00 | $0.90 |
|
||||
|
||||
### Cost Rates (per hour)
|
||||
|
||||
| Resource | Cloud (Azure) | On-Prem |
|
||||
|----------|---------------|---------|
|
||||
| CPU/core | $0.12 | $0.015 |
|
||||
| Memory/GB| $0.025 | $0.003 |
|
||||
| CPU/core | $0.20 | $0.02 |
|
||||
| Memory/GB| $0.05 | $0.005 |
|
||||
|
||||
#### Cloud Rates (Fudged Higher)
|
||||
- Based on Azure D-series VM pricing + 50% managed services overhead
|
||||
@@ -50,14 +58,26 @@ These estimates account for the full data pipeline per vehicle:
|
||||
### Savings Calculation
|
||||
|
||||
```
|
||||
Cloud Cost = (CPU_cores × $0.12 + Memory_GB × $0.025) × hours
|
||||
On-Prem Cost = (CPU_cores × $0.015 + Memory_GB × $0.003) × hours
|
||||
Per-VIN Cost = (CPU_cores × rate + Memory_GB × rate) × hours + (base_infra / active_vins)
|
||||
Cloud Cost = Per-VIN costs summed across fleet
|
||||
On-Prem Cost = Same formula with on-prem rates
|
||||
Savings = Cloud Cost - On-Prem Cost
|
||||
Savings % = (Savings / Cloud Cost) × 100
|
||||
```
|
||||
|
||||
Expected savings: **~85-88%** with on-prem hosting (hardware costs only).
|
||||
|
||||
### Projected Annual Costs (5000 vehicles)
|
||||
|
||||
Based on actual Azure billing (~$65k/month):
|
||||
|
||||
| Metric | Cloud | On-Prem |
|
||||
|--------|-------|---------|
|
||||
| Monthly Cost | ~$65,000 | ~$9,500 |
|
||||
| Annual Cost | ~$780,000 | ~$114,000 |
|
||||
| Per Vehicle/Month | ~$13.00 | ~$1.90 |
|
||||
| Annual Savings | ~$666,000 (85%) | - |
|
||||
|
||||
## API Endpoints
|
||||
|
||||
### GET /cost/vin/{vin}
|
||||
|
||||
Reference in New Issue
Block a user