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

@ -2892,6 +2892,7 @@
"ops.l_paid":"Costo: {cost} subito, {mo}/mese.",
"ops.l_peer":{"one":"ha fatto peering con una rete a {where}","other":"ha fatto peering con {n} reti a {where}"},
"ops.l_pni":{"one":"ha ordinato un PNI a {where}","other":"ha ordinato {n} PNI ({where})"},
"ops.l_ports":{"one":"ha aumentato una porta di peering a {where}","other":"ha aumentato le porte di peering {n} volte ({where})"},
"ops.l_quiet":"{name} ha guardato i grafici. Niente da fare.",
"ops.l_repair":{"one":"ha accelerato una riparazione","other":"ha accelerato {n} riparazioni"},
"ops.l_routers":{"one":"ha potenziato i router a {where}","other":"ha potenziato i router in {n} posti ({where})"},
@ -2924,6 +2925,8 @@
"ops.o_optics_d":"Aggiungi ottiche alla dark fiber che scotta e accendi la fibra nuova il giorno della consegna.",
"ops.o_pni":"PNI con i grandi",
"ops.o_pni_d":"Ogni settimana: ordina un PNI con ogni rete disponibile che manda abbastanza traffico nei tuoi POP, alla taglia minima di ciascuna rete.",
"ops.o_ports":"Margine sulle porte di peering",
"ops.o_ports_d":"Tieni le porte PNI e IX sopra un multiplo del traffico di oggi: una porta singola in un POP con più router ne riceve una seconda in LAG, tutte le altre passano a una porta più grande.",
"ops.o_repair":"Accelera le riparazioni",
"ops.o_repair_d":"Paga la riparazione urgente di ogni guasto che ce l'ha, finché il budget regge.",
"ops.o_routers":"Router sempre avanti",