slack status without the slack status.zzstoatzz.io
status COSTS.md
3.4 kB · 53 lines
Markdown
at main

COSTS.md #

Mandate. This file tracks the infrastructure costs attributed to status and what we're doing to bring them down. It is the running record of what this project spends, why, and a changelog of changes that moved the number. If the spend here is unjustified, that's a signal to clean up — not to ignore it.

current cost — fetch it live, never hardcode #

Costs drift, so this file deliberately does not hardcode a dollar figure. Get the current monthly cost for this repo from the public daily snapshot collected by my-prefect-server (also surfaced at https://hub.waow.tech):

curl -sG https://pds.zzstoatzz.io/xrpc/com.atproto.repo.listRecords \
  --data-urlencode 'repo=zzstoatzz.io' \
  --data-urlencode 'collection=io.zzstoatzz.cost.snapshot' \
  --data-urlencode 'limit=1' | jq '(.records[0].value) as $snapshot | {
  as_of: $snapshot.generatedAt,
  cellar_monthly_usd: (
    [ $snapshot.lineItems[] | select(.service == "zzstoatzz-cellar") ]
    | (map(.amount) | add // 0) / 100
  ),
  lines: [ $snapshot.lineItems[] | select(.service == "zzstoatzz-cellar")
           | {service, provider, usd: (.amount/100), estimated} ]
}'

status has no machine of its own. Its index cell and collector run on zzstoatzz-cellar, one Fly machine shared with pollz, so the line above is the whole machine, not status's share. Expected baseline for cellar is $3.84/month plus bandwidth: $3.69 for one continuously running shared-cpu-1x Machine with 512MB RAM in iad, plus $0.15 for its 1GB volume, at Fly's published prices on 2026-11-09. The SvelteKit app is the status Worker, and link-preview images come from the cards Worker; both fall within the account's existing Workers Paid plan and the 5,000 unique image transformations Cloudflare Images includes each month.

Or open the costs panel at https://hub.waow.tech and group by project.

zzstoatzz-cellar is attributed to the cellar project in my-prefect-server (packages/mps/src/mps/costs/projects.py). If that is wrong, fix the mapping there rather than editing numbers here.

how we might bring this down #

  • cellar peaked at 208MB of its 512MB under a synthetic load of every poll, broad gif searches and concurrent repo resyncs (2026-11-09). What limits it under bursts is its shared vCPU, not memory.
  • Fly figures are estimates from machine and volume inventory; bandwidth is not included. Reconcile against the Fly dashboard.

changelog #

  • 2026-11-09 — cellar resized to 512MB with a 1GB volume once its memory held under load, and attributed to its own cellar project: $3.84/mo plus bandwidth at list prices for both apps; the hub's estimate is $3.45.
  • 2026-11-09 — status moved off zzstoatzz-quickslice-status (destroyed). The index is a zeldi cell on zzstoatzz-cellar, shared with pollz, whose own pollz-backend machine was destroyed too; the app is a Cloudflare Worker. Fly for both apps went from $10.69/month (status 1GB in ewr, pollz 512MB in iad, a 1GB volume each) to $7.15/month at current list prices.
  • 2026-07-14 — corrected Fly pricing to avoid charging twice for RAM included in the CPU preset; added the 1GB volume; attributed the app to the status project instead of misc. Expected baseline: $5.85/mo plus bandwidth.
  • 2026-06-17 — initial cost notice; 1 service(s) attributed here. Run the command above for the live figure.