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",

View file

@ -2892,6 +2892,7 @@
"ops.l_paid":"Coste: {cost} de entrada, {mo}/mes.",
"ops.l_peer":{"one":"hizo peering con una red en {where}","other":"hizo peering con {n} redes en {where}"},
"ops.l_pni":{"one":"pidió un PNI en {where}","other":"pidió {n} PNIs ({where})"},
"ops.l_ports":{"one":"amplió un puerto de peering en {where}","other":"amplió puertos de peering {n} veces ({where})"},
"ops.l_quiet":"{name} miró las gráficas. No había nada que hacer.",
"ops.l_repair":{"one":"aceleró una reparación","other":"aceleró {n} reparaciones"},
"ops.l_routers":{"one":"mejoró los routers en {where}","other":"mejoró los routers en {n} sitios ({where})"},
@ -2924,6 +2925,8 @@
"ops.o_optics_d":"Añadir ópticas a la fibra oscura que va caliente y encender la fibra nueva el día que te la entregan.",
"ops.o_pni":"PNI con los grandes",
"ops.o_pni_d":"Cada semana: pedir un PNI a cada red dispuesta que envíe suficiente tráfico en tus POPs, con el tamaño mínimo de cada red.",
"ops.o_ports":"Margen en puertos de peering",
"ops.o_ports_d":"Mantener los puertos PNI e IX por encima de un múltiplo del tráfico de hoy: un puerto único en un POP con varios routers recibe un segundo en LAG, todos los demás suben un tamaño de puerto.",
"ops.o_repair":"Acelerar reparaciones",
"ops.o_repair_d":"Pagar la reparación urgente de cada caída que la tenga, mientras dure el presupuesto.",
"ops.o_routers":"Routers por delante",

View file

@ -2892,6 +2892,7 @@
"ops.l_paid":"Coût : {cost} d'entrée, {mo}/mois.",
"ops.l_peer":{"one":"a peeré avec un réseau à {where}","other":"a peeré avec {n} réseaux à {where}"},
"ops.l_pni":{"one":"a commandé un PNI à {where}","other":"a commandé {n} PNI ({where})"},
"ops.l_ports":{"one":"a renforcé un port de peering à {where}","other":"a renforcé des ports de peering {n} fois ({where})"},
"ops.l_quiet":"{name} a surveillé les graphes. Rien à faire.",
"ops.l_repair":{"one":"a accéléré une réparation","other":"a accéléré {n} réparations"},
"ops.l_routers":{"one":"a mis à niveau les routeurs à {where}","other":"a mis à niveau les routeurs à {n} endroits ({where})"},
@ -2924,6 +2925,8 @@
"ops.o_optics_d":"Ajouter des optiques sur la fibre noire qui chauffe, et allumer la nouvelle fibre le jour de sa livraison.",
"ops.o_pni":"PNI avec les gros",
"ops.o_pni_d":"Chaque semaine : commander un PNI avec chaque réseau partant qui envoie assez de trafic sur tes POP, à la taille minimale de chaque réseau.",
"ops.o_ports":"Garder de la marge sur les ports de peering",
"ops.o_ports_d":"Garder les ports PNI et IX au-dessus d'un multiple du trafic du jour : un port unique dans un POP à plusieurs routeurs en reçoit un deuxième en LAG, tous les autres passent à une taille de port au-dessus.",
"ops.o_repair":"Accélérer les réparations",
"ops.o_repair_d":"Payer la réparation express de chaque panne qui en a une, tant que le budget suit.",
"ops.o_routers":"Garder les routeurs en avance",

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",

View file

@ -2892,6 +2892,7 @@
"ops.l_paid":"Custo: {cost} de entrada, {mo}/mês.",
"ops.l_peer":{"one":"fez peering com uma rede em {where}","other":"fez peering com {n} redes em {where}"},
"ops.l_pni":{"one":"pediu um PNI em {where}","other":"pediu {n} PNIs ({where})"},
"ops.l_ports":{"one":"reforçou uma porta de peering em {where}","other":"reforçou portas de peering {n} vezes ({where})"},
"ops.l_quiet":"{name} ficou olhando os gráficos. Nada a fazer.",
"ops.l_repair":{"one":"acelerou um reparo","other":"acelerou {n} reparos"},
"ops.l_routers":{"one":"melhorou os roteadores em {where}","other":"melhorou os roteadores em {n} lugares ({where})"},
@ -2924,6 +2925,8 @@
"ops.o_optics_d":"Adicionar ópticas à fibra escura que está esquentando e acender a fibra nova no dia da entrega.",
"ops.o_pni":"PNI com os grandes",
"ops.o_pni_d":"Toda semana: pedir um PNI com cada rede disposta que mande tráfego suficiente nos seus POPs, no tamanho mínimo de cada rede.",
"ops.o_ports":"Folga nas portas de peering",
"ops.o_ports_d":"Manter as portas PNI e IX acima de um múltiplo do tráfego de hoje: uma porta única num POP com vários roteadores ganha uma segunda em LAG, todas as outras sobem um tamanho de porta.",
"ops.o_repair":"Acelerar reparos",
"ops.o_repair_d":"Pagar o reparo urgente de cada queda que tenha um, enquanto o orçamento durar.",
"ops.o_routers":"Roteadores à frente",