Skip to content

Commit e24a52b

Browse files
jangrau13claude
andcommitted
Delete the burst credit model, and the machines that only existed for it
`throttledFactor()` had no caller anywhere in `losim/src`, `losim/test` or `viewer`. `baselineFraction` was read only inside its body. `creditSeconds` was set by the catalogue and read nowhere. So every `t3` was a plain 2-vCPU machine that cost a fifth of the other 2-vCPU machines, with no compensating downside anywhere in the engine — picking one to save money was free. That would be dead code and no more, except the course said otherwise in four places: the console warned "full speed until its credits run out, then a fraction of a core — this is where stragglers come from"; the instance reference had a whole section explaining `baselineFraction` and `creditSeconds` as if they bit; `the-plan.mdx` built an exercise on `w3` being "the odd one out — a small burstable machine"; and `the-scenario.mdx` called a `t3.small` override of a `c5.large` pool "half the machine, and it will show", when both are 2 vCPU and it showed nothing. Arming the model was the alternative and was judged not worth it, so the promise goes instead of the implementation. Gone: the three fields, the method, the `burstable` flag through `Serve` and the console, and all four `t3` types. The teaching stays, because `a1.medium` can now carry it honestly. It is one core against a `c5.large`'s two — so it really does half the work in the same time — and at 0.0255 against 0.1020 it is *exactly* a quarter of the price, which is the ratio `what-it-cost.mdx` already claimed and only approximately had. Every place that reached for "the weak machine" now gets one: `w3` in the tutorial, the override examples, the console's own hint, which now talks about cores instead of credits. Two docs needed more than a substitution, because they used `t3.small` precisely *because* it was two cores: `concurrency.mdx`'s vCPU table now opens at 1, and `deadlines.mdx`'s "still 9 refMs" argument now points at the `c5.large`s, which is where it was always true. `netGbps` is the same shape — carried by the catalogue, read by nothing — but it promises nothing to anybody, so it stays until that is decided. Found by bcs-ds-assignment-1-6c. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 140e902 commit e24a52b

23 files changed

Lines changed: 75 additions & 104 deletions

‎docs/first/read-the-trace.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ questions a debugger answers, one channel answered one and a half out of five.
112112
<Step title="Did anything queue, or fill up?">
113113
`queue_wait` events say a call waited for a core. A few are healthy. A wall of
114114
them on one machine says your placement is ignoring how big the machines are —
115-
which, with a `t3.small` in the fleet, is what you should expect on the first
115+
which, with a `a1.medium` in the fleet, is what you should expect on the first
116116
attempt.
117117

118118
`oom` and `disk_full` events name the machine, the resource, the cap and the

‎docs/first/the-plan.mdx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ yours to write.
5252
├── w0 c5.large eu-central-1a ┐
5353
├── w1 c5.large eu-central-1b │ all four serve Thumbnailer
5454
├── w2 c5.large eu-central-1a │ so the job finds them by that,
55-
└── w3 t3.small eu-central-1b ┘ never by name
55+
└── w3 a1.medium eu-central-1b ┘ never by name
5656
```
5757

58-
`w3` is deliberately the odd one out — a small burstable machine among three
59-
compute-shaped ones. A fleet where every machine is identical teaches nothing
60-
about placement, and placement is most of what a coordinator is for.
58+
`w3` is deliberately the odd one out — **one core against everyone else's two**,
59+
so it does half the work in the same time and costs a quarter as much. A fleet
60+
where every machine is identical teaches nothing about placement, and placement
61+
is most of what a coordinator is for.
6162

6263
## Where this is going
6364

‎docs/first/the-scenario.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ machines:
2727
zone: [eu-central-1a, eu-central-1b]
2828
runs: [lab.Shrinker]
2929
overrides:
30-
w3: { instance: t3.small } # half the machine, and it will show
30+
w3: { instance: a1.medium } # one core against their two, and it will show
3131

3232
network:
3333
sameZone: 0.4 refMs
@@ -135,8 +135,8 @@ count, prefix, memoryMb, diskMb, overrides
135135
```
136136

137137
```text an unknown instance
138-
thumbs.yaml:9: unknown instance type 'c5.medium'; known types: t3.nano,
139-
t3.micro, t3.small, t3.medium, m5.large, m5.xlarge, m5.2xlarge, c5.large, …
138+
thumbs.yaml:9: unknown instance type 'c5.medium'; known types: a1.nano,
139+
a1.medium, m5.large, m5.xlarge, m5.2xlarge, c5.large, c5.xlarge, …
140140
```
141141

142142
```text a fault aimed at nothing

‎docs/first/what-it-cost.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ what happened
2727
capacity w0 (c5.large) 0.01670 machine-hours CHF 0.0017
2828
capacity w1 (c5.large) 0.01670 machine-hours CHF 0.0017
2929
capacity w2 (c5.large) 0.01670 machine-hours CHF 0.0017
30-
capacity w3 (t3.small) 0.01670 machine-hours CHF 0.0004
30+
capacity w3 (a1.medium) 0.01670 machine-hours CHF 0.0004
3131
consumption cross-zone egress 0.02300 GB CHF 0.0002
3232
incidents calls that did not answer in time 40.00 reruns CHF 0.8000
3333
incidents machines lost 1.000 failures CHF 0.2000
@@ -47,7 +47,7 @@ the ordinary case, not a contrived one. Before you tune anything, look at which
4747
is actually large.
4848

4949
**Capacity is one line per machine, with the instance type on it.** `w3` is the
50-
`t3.small` you gave it in the scenario, and it costs a quarter of what its neighbours
50+
`a1.medium` you gave it in the scenario, and it costs a quarter of what its neighbours
5151
do for exactly the same reserved period. That row is where an instance choice becomes
5252
money.
5353

‎docs/ref/api-spec.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public record Spec(String machine, String instance, String zone, int vcpu,
1616
```
1717

1818
<ResponseField name="machine()" type="String">This machine's name, e.g. `"w3"`.</ResponseField>
19-
<ResponseField name="instance()" type="String">Its instance type, e.g. `"t3.small"`.</ResponseField>
19+
<ResponseField name="instance()" type="String">Its instance type, e.g. `"a1.medium"`.</ResponseField>
2020
<ResponseField name="zone()" type="String">Its availability zone.</ResponseField>
2121
<ResponseField name="vcpu()" type="int">How many threads its pool has.</ResponseField>
2222
<ResponseField name="memoryCapMb()" type="double">

‎docs/ref/instances.mdx‎

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,29 @@ icon: "microchip"
66

77
Anything not in this table is refused at load, with the list.
88

9-
| instance | family | vCPU | memory | network | storage | burstable | $/hour |
10-
|---|---|---|---|---|---|---|---|
11-
| `a1.nano` | a1 | **1** | 512 MB | 0.5 Gbps | 8 GB | no | 0.0064 |
12-
| `a1.medium` | a1 | **1** | 2 GB | 0.5 Gbps | 8 GB | no | 0.0255 |
13-
| `t3.nano` | t3 | 2 | 512 MB | 0.5 Gbps | 8 GB | yes | 0.0060 |
14-
| `t3.micro` | t3 | 2 | 1 GB | 0.5 Gbps | 8 GB | yes | 0.0120 |
15-
| `t3.small` | t3 | 2 | 2 GB | 1.0 Gbps | 16 GB | yes | 0.0240 |
16-
| `t3.medium` | t3 | 2 | 4 GB | 1.0 Gbps | 16 GB | yes | 0.0480 |
17-
| `m5.large` | m5 | 2 | 8 GB | 0.75 Gbps | 32 GB | no | 0.1150 |
18-
| `m5.xlarge` | m5 | 4 | 16 GB | 1.25 Gbps | 32 GB | no | 0.2300 |
19-
| `m5.2xlarge` | m5 | 8 | 32 GB | 2.5 Gbps | 32 GB | no | 0.4600 |
20-
| `c5.large` | c5 | 2 | 4 GB | 0.75 Gbps | 32 GB | no | 0.1020 |
21-
| `c5.xlarge` | c5 | 4 | 8 GB | 1.25 Gbps | 32 GB | no | 0.2040 |
22-
| `c5.4xlarge` | c5 | 16 | 32 GB | 5.0 Gbps | 32 GB | no | 0.8160 |
23-
| `r5.large` | r5 | 2 | 16 GB | 0.75 Gbps | 32 GB | no | 0.1520 |
24-
| `r5.xlarge` | r5 | 4 | 32 GB | 1.25 Gbps | 32 GB | no | 0.3040 |
25-
| `i3.large` | i3 | 2 | 15.25 GB | 0.75 Gbps | **475 GB** | no | 0.1720 |
9+
| instance | family | vCPU | memory | network | storage | $/hour |
10+
|---|---|---|---|---|---|---|
11+
| `a1.nano` | a1 | **1** | 512 MB | 0.5 Gbps | 8 GB | 0.0064 |
12+
| `a1.medium` | a1 | **1** | 2 GB | 0.5 Gbps | 8 GB | 0.0255 |
13+
| `m5.large` | m5 | 2 | 8 GB | 0.75 Gbps | 32 GB | 0.1150 |
14+
| `m5.xlarge` | m5 | 4 | 16 GB | 1.25 Gbps | 32 GB | 0.2300 |
15+
| `m5.2xlarge` | m5 | 8 | 32 GB | 2.5 Gbps | 32 GB | 0.4600 |
16+
| `c5.large` | c5 | 2 | 4 GB | 0.75 Gbps | 32 GB | 0.1020 |
17+
| `c5.xlarge` | c5 | 4 | 8 GB | 1.25 Gbps | 32 GB | 0.2040 |
18+
| `c5.4xlarge` | c5 | 16 | 32 GB | 5.0 Gbps | 32 GB | 0.8160 |
19+
| `r5.large` | r5 | 2 | 16 GB | 0.75 Gbps | 32 GB | 0.1520 |
20+
| `r5.xlarge` | r5 | 4 | 32 GB | 1.25 Gbps | 32 GB | 0.3040 |
21+
| `i3.large` | i3 | 2 | 15.25 GB | 0.75 Gbps | **475 GB** | 0.1720 |
2622

2723
## What each family is for
2824

2925
<Columns cols={2}>
3026
<Card title="a1 — narrow" icon="compress">
31-
The only machines here with **one** core. Every other type has at least two, so
32-
these are the only way to say *half the machine the others are* — reach for one
33-
when the shape of the fleet is the lesson and somebody has to be the weak link.
34-
`a1.nano` holds the same 512 MB as `t3.nano` on half the cores, which makes that
35-
pair the one comparison in the table where a single variable moves.
36-
</Card>
37-
<Card title="t3 — burstable" icon="battery-half">
38-
The **straggler generator**. Cheap, and only sustains a fraction of a vCPU once
39-
its credits are gone. Put one in an otherwise uniform fleet and find out whether
40-
your placement notices.
27+
The **straggler generator**, and the only machines here with **one** core. Every
28+
other type has at least two, so these are the only way to say *half the machine
29+
the others are*: one call at a time, and declared work takes twice as long. Put
30+
an `a1.medium` in a pool of `c5.large`s — a quarter of the price and half the
31+
machine — and find out whether your placement notices.
4132
</Card>
4233
<Card title="m5 — balanced" icon="scale-balanced">
4334
The default. Use it when the point of the scenario is not the machines.
@@ -59,7 +50,7 @@ Anything not in this table is refused at load, with the list.
5950
<ParamField path="vCPU" type="int">
6051
The size of the machine's **thread pool**, and its speed relative to the reference
6152
machine: `machineFactor = 2 ÷ vcpu`. A `c5.4xlarge` runs a `@Takes(refMs = 8)`
62-
handler in 1 refMs; a `t3.small` takes the full 8.
53+
handler in 1 refMs; an `m5.large` takes the full 8, and an `a1.nano` takes 16.
6354
</ParamField>
6455

6556
<ParamField path="memory" type="MB">
@@ -83,13 +74,6 @@ makes. Two places declaring what an `r5.large` costs would be two places to drif
8374
apart, and the drift would be silent.
8475
</Note>
8576

86-
## Burstable machines
87-
88-
`t3` instances carry `baselineFraction` and `creditSeconds`: a sustained share of a
89-
vCPU, and how many seconds of full speed they get first. The throttled factor is
90-
`cpuFactor ÷ baselineFraction` — so a `t3.small` at 20% baseline is **five times**
91-
slower than its core count suggests once its credits are gone.
92-
9377
## Choosing them
9478

9579
<Tip>
@@ -102,7 +86,7 @@ workers:
10286
instance: c5.large
10387
runs: [lab.Shrinker]
10488
overrides:
105-
w3: { instance: t3.small }
89+
w3: { instance: a1.medium }
10690
```
10791
10892
Three compute machines and one that will fall behind. Whether your coordinator

‎docs/ref/machines.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ machines:
1919
memoryMb: 2048
2020
diskMb: 8192
2121
overrides:
22-
w3: { instance: t3.small, memoryMb: 512, zone: eu-central-1c }
22+
w3: { instance: a1.medium, memoryMb: 512, zone: eu-central-1c }
2323
```
2424
2525
At least one machine is required.

‎docs/ref/scenario.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ machines:
121121
zone: [eu-central-1a, eu-central-1b]
122122
runs: [lab.Shrinker]
123123
overrides:
124-
w3: { instance: t3.small, memoryMb: 512 }
124+
w3: { instance: a1.medium, memoryMb: 512 }
125125
126126
network:
127127
sameZone: 0.4 refMs

‎docs/viewer/make-it-worth-looking-at.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ workers:
136136
zone: [eu-central-1a, eu-central-1b]
137137
runs: [lab.Shrinker]
138138
overrides:
139-
w3: { instance: t3.small }
139+
w3: { instance: a1.medium }
140140

141141
faults:
142142
- { at: 900 refMs, kill: w1 }
143143
```
144144
145-
Two zones become two bands. A `t3.small` among three `c5.large`s is visibly a smaller
145+
Two zones become two bands. A `a1.medium` among three `c5.large`s is visibly a smaller
146146
box. And the kill is a red marker on the bar you can jump straight to with `]`.

‎docs/viewer/views.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ left to right, derived from the trace rather than fanned out by hand.
3636
<Columns cols={2}>
3737
<Card title="A machine is drawn the size it is" icon="ruler-combined">
3838
Wider with more memory, taller with more cores. A `c5.4xlarge` next to a
39-
`t3.small` looks like what it is before you have read a label.
39+
`a1.medium` looks like what it is before you have read a label.
4040
</Card>
4141
<Card title="It says how much is LEFT" icon="battery-half">
4242
Not how much is used. "Holding 255 MB" predicts nothing on its own; "180 MB left"

0 commit comments

Comments
 (0)