Descripcion
Section titled “Descripcion”La capa de topologia proporciona un mapa vivo del cluster AI-LAB mostrando todos los nodos (GPU, servicios, componentes) y sus conexiones, con estado online/offline en tiempo real.
Fuente de Datos: GET /api/topology
Section titled “Fuente de Datos: GET /api/topology”Formato de Respuesta
Section titled “Formato de Respuesta”{ "nodes": [ { "id": "rx9070-node", "title": "RX9070", "subtitle": "192.168.1.50", "mainstat": "3ms", "secondarystat": "5 models", "arc__online": 1, "arc__offline": 0 }, { "id": "gateway", "title": "Gateway AI-LAB", "subtitle": ":8008 | OpenAI API", "mainstat": "OK", "secondarystat": "1.30", "arc__online": 1, "arc__offline": 0 } ], "edges": [ { "id": "gateway-rx9070-node", "source": "gateway", "target": "rx9070-node", "mainstat": "3ms", "secondarystat": "RTT" } ]}Nodos Virtuales
Section titled “Nodos Virtuales”| Nodo | Descripcion | Subtitulo |
|---|---|---|
gateway | Gateway AI-LAB | :8008 | OpenAI API |
event-bus | Event Bus | Cognitivo |
episodic-memory | Episodic Memory | JSONL Store |
Nodos Dinamicos (desde cluster_state.json)
Section titled “Nodos Dinamicos (desde cluster_state.json)”Se generan automaticamente a partir del estado actual del cluster, incluyendo latencia, modelos disponibles y estado online/offline.
Componente: TopologyGraph.astro
Section titled “Componente: TopologyGraph.astro”Renderiza la topologia como texto estructurado con colores:
AI-LAB CLUSTER TOPOLOGY ======================
● RX9070 (3ms) ○ RX7900XT (OFFLINE) ● Gateway AI-LAB (OK) ● Event Bus (OK) ● Episodic Memory (OK)
gateway -> RX9070: 3ms gateway -> RX7900XT: OFFLINE gateway -> event-bus: active event-bus -> episodic-memory: recordingCytoscape.js
Section titled “Cytoscape.js”Cytoscape.js esta instalado en el proyecto Astro para una futura migracion a un grafo interactivo con las siguientes capacidades:
- Nodos coloreados por estado (verde online, rojo offline)
- Aristas con etiquetas de latencia
- Layout breadfirst (jerarquico)
- Tooltips con metricas al hacer hover
- Actualizacion en tiempo real via SSE
Paginas
Section titled “Paginas”| Pagina | Ruta | Componente |
|---|---|---|
| Topologia Publica | /status/topology | TopologyGraph |
| Estado Vivo | /status/live | ClusterHealth + EventStream |
Plan de Migracion a Cytoscape
Section titled “Plan de Migracion a Cytoscape”- Implementar renderizado Cytoscape en TopologyGraph.tsx
- Conectar a SSE para actualizacion en vivo
- Anadir colores degradados (amarillo = degraded)
- Anadir tooltips con metricas al hover
- Pagina privada
/ops/topologycon detalle ampliado