The intern can keep PNI and IX ports ahead of their traffic (closes #234)

A new standing order, Keep peering headroom, works like the transit one: it
keeps each PNI and IX port above a multiple of today's traffic (1.25x to 3x).
A single port at a POP with several routers gets a second port in a LAG; any
other port moves up to the smallest port size that fits, or the biggest the
router takes. If the preferred move cannot be done it tries the other one.

It pays through the same actions as a click (ACT.pni, ACT.lagP, ACT.buyIx,
ACT.lagIx), is off by default, has the Headroom and Budget dials and the
per-POP switch, and keeps to the cash floor. A PNI augment on order is waited
for, router ports an augment will take are not promised twice, and nothing
is bought while a DDoS flood is live, since the flood counts as port usage.

The intern's monthly bill figure (opsMoNow) now counts IX ports too.
This commit is contained in:
Christopher Hawker 2026-11-03 22:54:54 +11:00
parent 48ba0048da
commit 62c242c9a7
9 changed files with 226 additions and 2 deletions

View file

@ -2893,6 +2893,7 @@
"ops.l_paid":"Cost: {cost} up front, {mo}/mo.",
"ops.l_peer":{"one":"peered with a network at {where}","other":"peered with {n} networks at {where}"},
"ops.l_pni":{"one":"ordered a PNI in {where}","other":"ordered {n} PNIs ({where})"},
"ops.l_ports":{"one":"topped up a peering port in {where}","other":"topped up peering ports {n} times ({where})"},
"ops.l_quiet":"{name} watched the graphs. Nothing needed doing.",
"ops.l_repair":{"one":"rushed a repair","other":"rushed {n} repairs"},
"ops.l_routers":{"one":"upgraded routers in {where}","other":"upgraded routers in {n} places ({where})"},
@ -2925,6 +2926,8 @@
"ops.o_optics_d":"Add optics to dark fiber that runs hot, and light new fiber the day it is handed over.",
"ops.o_pni":"PNI with the big ones",
"ops.o_pni_d":"Every week: order a PNI with every willing network sending enough traffic at your POPs, at each network's own minimum size.",
"ops.o_ports":"Keep peering headroom",
"ops.o_ports_d":"Keep PNI and IX ports above a multiple of today's traffic: a single port at a POP with several routers gets a second one in a LAG, anything else moves up a port size.",
"ops.o_repair":"Rush repairs",
"ops.o_repair_d":"Pay for the rush repair on every outage that has one, while the budget lasts.",
"ops.o_routers":"Keep routers ahead",