Repository navigation
Description
What is missing
Three related gaps around hardware. A reader cannot pick most machines, cannot describe a machine
that is not on the menu, and cannot make any hardware spec change a result.
1. The catalog covers three component kinds. isSizedKind names eleven kinds, but only
service, db and cache carry a sizes array at any vendor. AWS ships 15 sizes, GCP 13, Azure
15. A worker, a replica set, a shard, a search index, a time series store, a graph store, a vector
store and a transcoder all get a product name and no picker, because VendorPanel renders the
picker only when mapping.sizes is non-empty.
That is not only a missing dropdown. costDesign pushes any mapped kind with no priced size onto
unpriced, so every design containing a worker reports a monthly total that silently excludes the
workers. Async worker topologies are a large share of the bundled examples.
The families on offer are also narrow. service gets general purpose only (t3, m6i, n2, e2,
D_v5). There is no compute optimised or memory optimised shape, which is the first thing anyone
sizing a real service compares.
2. There is no custom machine. An infra team runs shapes a catalog will never hold: a reserved
instance, a bare metal box, an on-prem server, a Kubernetes pod request and limit. Today those
cannot be expressed, so the tool can only price what the vendor files happen to contain. GCP
already uses custom machine types in this repo (db-custom-4-16384), so the vocabulary exists.
3. Specs that are collected but never used. VendorSize carries memory, network and
maxIops, each cited. Only vcpu does anything: derive.ts turns it into capacity. memory
prints as text in VendorPanel.tsx:79. network and maxIops are read nowhere in src/. So a
reader picks db.r6g.large, sees 16 GiB and "Up to 10 Gigabit", and neither number can ever
change a result.
Smaller, in the same area: chosen sizes live in localStorage keyed vendor:nodeId (sizing.ts),
so share links and exported .breakscale files arrive unsized and unpriced.
What would it teach
That CPU is rarely what breaks first. A student sizes a service for throughput, watches the queue
stay short, and still sees it die because each in-flight request holds 40 MB and the box has 16
GiB. Or the queue is healthy and the NIC is full at 1.2 Gbps. Right now the only way to fail in
Breakscale is to run out of slots or time, and that is the least common outage in practice.
A custom machine adds the sizing exercise itself: put the box you already own next to the box on
the menu and see which one survives the load.
The byproduct is that an infra or devops reader can take a design to provisioning: this is the
fleet, this is the shape, and this is the resource that binds first.
Rough shape
- Sizing becomes part of the design. Move the chosen size out of
localStorageand into the
topology, so export, import and share links carry it. This is a prerequisite for anything
custom, since a machine the reader defined is worthless if it does not travel with the design. - Widen the catalog. Sizes for the eight sized kinds that have none, and compute optimised
and memory optimised families forservice. Same rule as today: published spec, source URL,
date read. This closes the hole in the cost total on its own. - A custom machine. Name, vCPU, memory, network, IOPS, price per hour, entered by the reader.
It runs through the samederiveFromSizeand the same cost arithmetic as a catalog size. - Resources become simulation dimensions. Per-request demand and per-node limit for memory,
IOPS and bandwidth. Memory exhaustion sheds; IOPS and bandwidth saturation adds delay rather
than failing outright. Mechanics are yours to decide; that is one plausible split. - A provisioning readout. Per component: kind, shape, fleet, and the resource with the least
headroom.
Keeping it honest
A custom machine is labelled user defined everywhere it appears. It never carries a source URL and
is never mixed into anything that claims to be published spec. Where a total is priced from a
reader's own figure rather than a published rate, the readout should say so.
Per-request demand would be user set, defaulting to unset. Unset shows nothing rather than a
guessed number, the way derive.ts returns null where there is nothing honest to say. No resource
figure would be derived from an instance size, and the derivation stays in one file.
This is the argument cost.ts already makes for money: a design trade-off the simulator cannot
currently show. And derive.ts already tells readers who want real behaviour to set the knobs
themselves. This is more knobs to set.
Anything you already tried
Checked against what is planned. TODO lists a networking layer (bandwidth and loss), which step 4
should fold into rather than duplicate. Issue #13 covers documenting how vendor sizes become
simulator numbers, which is adjacent: that explains the current derivation, this widens what a
size can affect.
Activity
[-]Model hardware resources, not just slots: memory, IOPS and bandwidth[/-][+]Hardware sizing: a wider instance catalog, custom machines, and specs the engine acts on[/+]Shashank-Tripathi-07 commentedon Sep 2, 2026
@snowfluke and @xevrion , I'm totally supportive on this one, a good simulator should not just simulate one aspect but also the other aspects of the systems. This will not only teach running out but handling the systems like a true engineer on job. Paperdraw (https://paperdraw.dev/ ) is a good source of inspiration for the project.
If you need help on making this happen, do let me know 🤝
xevrion commentedon Sep 2, 2026
Sorry for the slow reply on this one, and thanks @Shashank-Tripathi-07 for the offer.
I checked the three parts against the code. The one that lands hardest for me is the third:
maxIopsis read nowhere outside the vendor files and the type, so a reader picks a size, sees a cited figure, and it cannot change a result. That is uncomfortably close to decoration in a tool whose whole claim is that its numbers are measured. Citing a number the engine ignores is not false exactly, but it is not honest either.The cost half is a plain bug rather than a feature request, and I think it should be split out and fixed on its own: a design containing a worker silently under-reports its monthly total, and async worker topologies are a large share of the bundled examples.
The catalog and custom machines are the genuine design decision and I want to think about them properly rather than agree quickly. A custom machine in particular means deciding what the simulator does with a spec it has no published source for, which cuts against the rule that every number here is either measured or cited. Worth doing, but the rule has to survive it.
Leaving open as discussion.
Shashank-Tripathi-07 commentedon Sep 2, 2026
Cool, let's discuss and agree on the components and probably you should add this as a feature later on even.
yeabsira-gashaw commentedon Sep 28, 2026
I really like this direction, especially the idea of making memory, IOPS, and network actual simulation dimensions rather than just informational specs.
From what I understand, the existing machine types already affect simulation output through their CPU/vCPU capacity. So I wouldn't want to imply that machine selection is currently irrelevant — rather, the gap seems to be that the other declared hardware characteristics don't yet participate in the simulation as constraints.
For example, imagine two machine types:
With a CPU-bound workload, we would already expect A and B to produce different simulation results because of their CPU capacity.
But consider a workload that is primarily network-bound:
In a real system, both machines would behave differently because the 1 Gbps and 10 Gbps network limits become the bottleneck. If network capacity isn't modeled, however, that difference can't currently emerge from the simulation.
The same idea applies to IOPS and memory.
One thought on the modeling side: it could be useful to treat each resource independently as a bounded resource, similar to how CPU capacity is modeled today:
Then workloads could optionally declare resource demand:
The simulator could then expose which resource becomes the limiting factor:
I also like the proposal that per-request resource demand should default to unset rather than being inferred from the machine size. That keeps the model explicit and avoids pretending that the simulator knows the workload's memory/IOPS/network characteristics.
For a first iteration, perhaps the simplest useful model would be:
Then later we could consider more advanced behavior such as memory-driven eviction, network effects, or storage queue depth.
I'd be interested in helping prototype this if the direction makes sense.
nawazish2 commentedon Nov 26, 2026
Saw that #136 just landed
sizesFrom/sizesFor()for AWSworker. While the custom machine and resource-dimension design here is still being settled, I would be happy to pick up a small, scoped slice on the catalog side if that direction makes sense:dbsizes withreplicaandshardviasizesFrom: 'db'where the vendor sells the same hardware asdb(aws.tsalready notes this forreplicaandshard,gcp.tsmapsreplicato Cloud SQL read replica, andazure.tsmapsreplicato Azure SQL Database geo-replica;cost.tsalready computesfleetSizefor bothreplicaandshard, so wiringsizesFromlets the picker and cost total cover them too).servicefamilies across AWS, GCP, and Azure (following the existing citation rules: published specs only,sourceURLs,pricedOndates, noserviceMsderivation).@xevrion Would either (or both, as separate PRs) be welcome before the broader sizing/resource model is decided?