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

@ -2894,6 +2894,7 @@
"ops.l_paid":"Kosten: {cost} einmalig, {mo}/Monat.",
"ops.l_peer":{"one":"hat mit einem Netz an {where} gepeert","other":"hat mit {n} Netzen an {where} gepeert"},
"ops.l_pni":{"one":"hat einen PNI in {where} bestellt","other":"hat {n} PNIs bestellt ({where})"},
"ops.l_ports":{"one":"hat einen Peering-Port in {where} aufgestockt","other":"hat {n}-mal Peering-Ports aufgestockt ({where})"},
"ops.l_quiet":"{name} hat auf die Graphen geschaut. Nichts zu tun.",
"ops.l_repair":{"one":"hat eine Reparatur beschleunigt","other":"hat {n} Reparaturen beschleunigt"},
"ops.l_routers":{"one":"hat Router in {where} aufgerüstet","other":"hat Router an {n} Orten aufgerüstet ({where})"},
@ -2926,6 +2927,8 @@
"ops.o_optics_d":"Optiken auf heiß laufende Dark Fiber stecken und neue Glasfaser am Tag der Übergabe beleuchten.",
"ops.o_pni":"PNI mit den Großen",
"ops.o_pni_d":"Jede Woche: mit jedem willigen Netz, das an deinen POPs genug Traffic schickt, einen PNI bestellen, in der jeweils kleinsten Größe des Netzes.",
"ops.o_ports":"Peering-Reserve halten",
"ops.o_ports_d":"PNI- und IX-Ports über einem Vielfachen des heutigen Traffics halten: ein einzelner Port an einem POP mit mehreren Routern bekommt einen zweiten im LAG, alle anderen eine Portgröße hoch.",
"ops.o_repair":"Reparaturen beschleunigen",
"ops.o_repair_d":"Für jeden Ausfall mit Eil-Reparatur zahlen, solange das Budget reicht.",
"ops.o_routers":"Router voraus halten",