VPS commit: 8eef89b (egutierrez/element_matrix_chat) - 0167: STUN leak fixed (use_external_ip:false + node_ip hardcoded) - 0168: UDP range expanded 50000-50200 -> 50000-50500 - 0169: API secret rotated (old key LK44e009c6e92b -> new LK5f6b38bb) - 0170: livekit.example.yaml refreshed + header comments cleaned Verification: - 0 STUN packets to Google during restart (tcpdump 60s window) - Endpoint /livekit/sfu/ HTTP 200 - LiveKit logs: nodeIP=135.125.201.30, portICERange=[50000,50500] - Containers livekit + livekit-jwt healthy New secret stored in pass: matrix/livekit-secret-rotation-2026-05-25
1.7 KiB
id, title, status, type, domain, scope, priority, depends, blocks, related, created, updated, tags
| id | title | status | type | domain | scope | priority | depends | blocks | related | created | updated | tags | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0168 | Ampliar UDP range LiveKit de 200 a 500 ports | pendiente | infra |
|
app:element_matrix_chat | baja |
|
2026-05-24 | 2026-05-24 |
|
0168 — Ampliar UDP range LiveKit de 200 a 500 ports
Status: pendiente Created: 2026-05-24 Type: infra Priority: baja Domain: matrix Scope: app:element_matrix_chat Depends: — Blocks: —
Problema
LiveKit configurado con port_range_start: 50000, port_range_end: 50200 (200 ports UDP). Cada participante usa ~2 ports → cap ~100 participantes concurrentes sumando TODAS las calls del server. OK para uso personal hoy, justo si se anaden grupos simultaneos o reuniones >10 personas.
Objetivo
Sostener al menos 250 participantes concurrentes sin port exhaustion.
Plan
- Editar
configs/livekit/livekit.yaml:port_range_end: 50500. - Actualizar
docker-compose.ymlpara exponer rango ampliado (300 puertos UDP adicionales). - Abrir rango en firewall VPS (UFW/iptables).
- Restart stack LiveKit.
- Smoke test: call funciona.
Acceptance
docker port element_matrix_chat-livekit-1muestra 50000-50500 UDP.ss -lun | grep -c "0.0.0.0:50">= 500 tras restart.- Call test OK.
Definition of Done
- Repetibilidad: stack reinicia limpio.
Notas
docker-compose.yml actualmente lista los 200 ports uno a uno (verboso pero explicito). Considerar usar sintaxis "50000-50500:50000-50500/udp" para legibilidad.
NO incrementar a >1000 sin medir consumo memoria LiveKit — cada port asignado tiene overhead minimo pero acumula.