{
  "scenarios": [
    {
      "id": "single_intermittent_no_db",
      "label": "1 intermittent API, no database (360 req/day, 90 spaced windows)",
      "description": "One 256 MB API answering 90 spaced 4-request windows/day (10,800 req/mo) with long idle gaps between windows, grounded in the measured spread FastAPI trace (7 billed awake seconds per window = 5.25 h/mo, 1.353515625 GB-RAM-h).",
      "apps": 1,
      "ram_mb": 256,
      "requires_postgres": false,
      "window_hours_per_app_per_month": "5.25",
      "inter_arrival_seconds": "30",
      "has_long_idle_gaps": true,
      "gregale_billed_hours_override": "5.25",
      "requests_per_month": 10800,
      "avg_request_duration_seconds": "0.5",
      "railway_avg_vcpu_while_active": "0.05",
      "cloud_run_vcpu": "1",
      "cloud_run_gib": "0.25"
    },
    {
      "id": "evenly_spaced_24x7_single_with_db",
      "label": "1 evenly distributed 24/7 API + Postgres (1 req / 30 s)",
      "description": "One 512 MB production API receiving 1 request every 30 seconds all month (87,600 req/mo) plus one managed PostgreSQL database. Minute-scale sleep timers never trigger, while Gregale pauses ~1-2 s after each request.",
      "apps": 1,
      "ram_mb": 512,
      "requires_postgres": true,
      "window_hours_per_app_per_month": "730",
      "inter_arrival_seconds": "30",
      "has_long_idle_gaps": false,
      "requests_per_month": 87600,
      "avg_request_duration_seconds": "0.2",
      "railway_avg_vcpu_while_active": "0.10",
      "cloud_run_vcpu": "1",
      "cloud_run_gib": "0.5"
    },
    {
      "id": "evenly_spaced_24x7_five_services_with_db",
      "label": "5 evenly distributed 24/7 services + Postgres (1 req / 30 s each)",
      "description": "Five 512 MB backend services (public API, webhook receiver, admin API, worker API, MCP server) each receiving 1 request every 30 seconds around the clock (438,000 req/mo total) sharing one managed PostgreSQL database.",
      "apps": 5,
      "ram_mb": 512,
      "requires_postgres": true,
      "window_hours_per_app_per_month": "730",
      "inter_arrival_seconds": "30",
      "has_long_idle_gaps": false,
      "requests_per_month": 438000,
      "avg_request_duration_seconds": "0.2",
      "railway_avg_vcpu_while_active": "0.05",
      "cloud_run_vcpu": "1",
      "cloud_run_gib": "0.5"
    },
    {
      "id": "saturated_24x7_single_with_db",
      "label": "1 continuously busy 24/7 API + Postgres (2 req/s, no idle gaps)",
      "description": "One 512 MB production API serving 2 requests/second continuously all month (5,256,000 req/mo) with one managed PostgreSQL database. Traffic arrives faster than Gregale's pause threshold, so all platforms bill 730 hours.",
      "apps": 1,
      "ram_mb": 512,
      "requires_postgres": true,
      "window_hours_per_app_per_month": "730",
      "inter_arrival_seconds": "0.5",
      "has_long_idle_gaps": false,
      "requests_per_month": 5256000,
      "avg_request_duration_seconds": "0.2",
      "railway_avg_vcpu_while_active": "0.10",
      "cloud_run_vcpu": "1",
      "cloud_run_gib": "0.5"
    }
  ]
}
