Sizing & Capacity Guide · v0.2

Capacity planning
per il volume reale

Driver concreti, bottleneck per layer, costi calcolati con i pricing ufficiali HANA Cloud + Kyma. Da 1M a 10M fatture/anno.

Volumetria

Esempio enterprise italiano · 5M fatture/anno · 5M allegati.

42/min
Steady state
200/min
Burst peak
4 TB
Allegati / anno
40 TB
Cumulato 10y

FatturaPA italiana ha distribuzione concentrata: 30-40% del mensile in 3-5 giorni di fine periodo. Picchi trimestrali +20% sopra mese tipico.

XML FatturaPA

~30% del volume · 50 KB media · parse diretto, no OCR

PDF leggibile

~60% del volume · 500 KB-2 MB · DOX OCR

TIFF scanner

~10% del volume · 1-5 MB · OCR + storage premium

Bottleneck per layer

8 layer critici · capacità nominale vs carico picco a 5M/anno.

CAP/Node pod
3% used
HANA Cloud (64 GB)
8% used
PostgreSQL in-cluster
partitioning needed
AI Core (GPT-4o)
enterprise tier
SAP DOX
tier upgrade
S/4 OData (Posting)
batching
Event Mesh
ample
DMS (HTML5 Repo)
switch S3

Storage sizing

Allegati binari + DB strutturato · tier-down strategy 10y.

HANA Cloud · pricing reale

1 CU ≈ €0.87/mese (730 ore/mese basis). ~32 CU/GB/mese coefficiente medio.

32 GB ~1.170 CU/mese · entry tier · < 500K fatture/anno €12.218 / anno
64 GB ~2.200 CU/mese · 500K-2M fatture/anno €22.969 / anno
128 GB ~4.150 CU/mese · 2-5M fatture/anno · +NSE partition vecchie €43.330 / anno
256 GB ~8.200 CU/mese · 5-10M · +20% overhead tier €85.608 / anno
512 GB ~16.400 CU/mese · 10M+ · enterprise + read replica €171.216 / anno

Allegati storage · 10y retention italian fiscal

Default DMS_ADAPTER=btp (HTML5 Repo) non scala sopra 1M/anno. Switch obbligatorio a s3 (MinIO o BTP Object Store).

Hot tier (anno 1)

S3 standard · ~€0.023/GB/mese · accesso latenza < 50ms

Warm tier (anni 2-7)

S3 Infrequent Access · ~€0.0125/GB/mese · −50% costo

Cold tier (anni 8-10)

S3 Glacier / Azure Archive · ~€0.004/GB/mese · retrieval 1-12h

Read replica analytics

Sopra 2M/anno: query aggregation competono con OLTP. Routing read-only a replica via cds.requires['analytics-db'].

// srv/integration/analyticsDb.ts (helper centrale)
async function getAnalyticsDb() {
  if (cds.requires['analytics-db']) {
    try { return await cds.connect.to('analytics-db'); }
    catch { return await cds.connect.to('db'); }   // graceful fallback
  }
  return await cds.connect.to('db');                  // no replica configured
}

Entry point già instradati (2026-04-28)

analyticsActions.ts

getStatusDistribution, getChannelDistribution, getOverviewKPIs, READ ChannelKPIs

adminAuditActions.ts

READ BillingTotalsMonthly (cross-CC roll-up)

Esclusi (sempre primary)

AuditLogEntry forensic · lifecycle action handler (read-modify-write)

Disaster Recovery

5 tier · scelta per RPO/RTO target del settore.

T0
Single Region
Pilot · demo · dev environment
RPO: N/A
RTO: hours
€0
T1
Backup-Only
Nightly snapshot · restore manuale
RPO: 24h
RTO: 2-4h
+€100/mese
T2
Warm Standby
Recommended · privato + utility
RPO: 30m
RTO: 60m
+€400/mese
T3
Hot Standby
Banking · PA · SLA 99.95%+
RPO: 15m
RTO: 5m
+€800/mese
T4
Active-Active
Critical · multi-region
RPO: <1m
RTO: <1m
+€1.500/mese

Priorità tuning · 5M+/anno

Action items in ordine di priorità decrescente.

DMS adapter = s3

Switch da btp (HTML5 Repo) → MinIO o BTP Object Store. Required > 1M/anno

DB partitioning

HANA HASH(CompanyCode) + RANGE(YEAR) · PostgreSQL declarative RANGE(date). Required > 2M/anno

Read replica analytics

Bind analytics-db via service binding. Recommended > 2M/anno

AI Core strategy

Async batch (cron) · enterprise dedicated · Ollama on-prem. Required > 1M/anno per costi < €10K/mese

DOX pre-filtering

Parse XML inline (~30% volume), DOX solo per PDF/TIFF. Riduce tier DOX di ~70%.

HPA tuning

Kyma min:2, max:10, target:70% CPU. Già configurato

NSE per HANA

Partition >2 anni come PAGE LOADABLE per offload buffer pool.

Tier-down storage

S3 lifecycle: hot 2y → IA 6y → Archive 2y. Riduce costi 10y di ~70%.

Costi orientativi

Stima 5M fatture/anno · Kyma + AWS S3 + AI batch + HANA 128 GB.

€80k
Min · cost-conscious
€140k
Tipico
€200k
Max · enterprise

Range tipico ±25%. Esclude: licenze SAP S/4HANA Cloud, formazione team, customizzazione, consulenza implementativa.

Calcola il TUO scenario

Driver concreti del tuo workload → output personalizzato in tempo reale.

Apri Sizing Wizard