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