feat!: Urutau 2.0.0, ultralight probes and a single analysis hub
Each server runs an ultralight probe (scratch image, ~7 MiB RSS) that tails the logs, ships raw lines to the hub over HTTPS with an on-disk spool, and applies enforce decisions locally. The hub keeps one node per probe (primary node = the 1.x data dir, unchanged), does all analysis and serves the UI. Peer federation is removed. 'urutau import' brings 1.x data dirs in with hash and count verification. UI: probes page, host qualified incidents, IPs never wrap, egress heatmap labels, live and replay globes no longer auto-rotate, replay repeat, live traffic metrics. BREAKING CHANGE: URUTAU_PEERS, URUTAU_PEER_* and /api/v1/peer/* are gone; log path variables move from the hub to the probe. See docs/migration-2.0.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23a7a5963a
commit
8546d14cef
130 files changed
+9396
-3311
No files matched your search
@@ -50,6 +50,7 @@
|
||||
'rp.only': 'Incidents only',
|
||||
'rp.select': 'Select segment',
|
||||
'rp.loopclear': 'Clear segment',
|
||||
'rp.repeat': 'Repeat',
|
||||
'rp.loop': 'Looping {a} to {b}',
|
||||
'rp.share': 'Copy link',
|
||||
'rp.copied': 'Link copied',
|
||||
@@ -145,6 +146,7 @@
|
||||
'rp.only': 'Só incidentes',
|
||||
'rp.select': 'Selecionar trecho',
|
||||
'rp.loopclear': 'Limpar trecho',
|
||||
'rp.repeat': 'Repetir',
|
||||
'rp.loop': 'Repetindo de {a} a {b}',
|
||||
'rp.share': 'Copiar link',
|
||||
'rp.copied': 'Link copiado',
|
||||
@@ -266,6 +268,7 @@
|
||||
next: ['M16.5 5H19v14h-2.5z|M5 5.5v13L14.5 12z', 1],
|
||||
stepb: ['M16 5.5v13L7 12z', 1],
|
||||
stepf: ['M8 5.5v13L17 12z', 1],
|
||||
repeat: ['M17 2l4 4-4 4|M3 11V9a3 3 0 0 1 3-3h15|M7 22l-4-4 4-4|M21 13v2a3 3 0 0 1-3 3H3', 0],
|
||||
restart: ['M4 4v6h6|M5.5 15a8 8 0 1 0 2-8L4 10', 0],
|
||||
share: ['M4 12v7h16v-7|M12 3v12|M8 7l4-4 4 4', 0],
|
||||
seg: ['M4 8v8|M20 8v8|M4 12h16', 0],
|
||||
@@ -307,7 +310,8 @@
|
||||
var from = 0, to = 0, tooBig = false, routeT = '', noReg = false, campStarted = false, campId = '', campIps = null;
|
||||
var F = { cat: '', fam: '', q: '', host: '' };
|
||||
var speed = 60, compress = false, only = false;
|
||||
var playing = false, ended = false;
|
||||
var playing = false, ended = false, repeat = false;
|
||||
try { repeat = localStorage.getItem('urutau.replay.repeat') === '1'; } catch (x) { /* storage blocked */ }
|
||||
var clock = 0;
|
||||
var buf = [], idx = 0, nextTok = null, loading = false, epoch = 0, startFrom = 0, firstBatch = true, landBefore = null;
|
||||
var failed = false, drained = false;
|
||||
@@ -676,7 +680,7 @@
|
||||
clockDirty = true; tlDirty = true;
|
||||
if (buf.length - idx < AHEAD && !drained && !loading) fetchMore();
|
||||
if (loop && clock > loop.b) { seek(loop.a); return; }
|
||||
if (clock >= to && idx >= buf.length && drained) { playing = false; ended = true; syncPlay(); }
|
||||
if (clock >= to && idx >= buf.length && drained) { playing = false; ended = true; syncPlay(); if (repeat) restart(); }
|
||||
trim();
|
||||
}
|
||||
function trim() {
|
||||
@@ -861,10 +865,15 @@
|
||||
ui.compB = toggle(t('rp.compress'), function () { compress = !compress; syncToggles(); writeHash(true); });
|
||||
ui.onlyB = toggle(t('rp.only'), function () { only = !only; syncToggles(); refilter(); });
|
||||
ui.selB = toggle(t('rp.select'), function () { selecting = !selecting; if (!selecting && loop) { loop = null; tlDirty = true; } syncToggles(); kick(); });
|
||||
ui.repB = btn('rp-rep rp-tog', 'repeat', t('rp.repeat'), function () {
|
||||
repeat = !repeat; syncToggles();
|
||||
try { localStorage.setItem('urutau.replay.repeat', repeat ? '1' : '0'); } catch (x) { /* storage blocked */ }
|
||||
if (repeat && ended) restart();
|
||||
});
|
||||
ui.shareB = btn('rp-share', 'share', t('rp.share'), function () { share(); });
|
||||
ui.detB = h('button', 'btn rp-det', t('rp.detail')); ui.detB.type = 'button';
|
||||
ui.detB.addEventListener('click', function () { openSheet(); });
|
||||
[ui.prevB, ui.stepbB, ui.playB, ui.stepfB, ui.nextB, ui.clock, ui.speedSeg, ui.speedSel, ui.compB, ui.onlyB, ui.selB, ui.shareB, ui.detB].forEach(function (n) { tr.appendChild(n); });
|
||||
[ui.prevB, ui.stepbB, ui.playB, ui.stepfB, ui.nextB, ui.clock, ui.speedSeg, ui.speedSel, ui.compB, ui.onlyB, ui.selB, ui.repB, ui.shareB, ui.detB].forEach(function (n) { tr.appendChild(n); });
|
||||
ui.loopNote = h('span', 'rp-loopnote'); tr.appendChild(ui.loopNote);
|
||||
|
||||
var tw = h('div', 'rp-tl');
|
||||
@@ -939,6 +948,7 @@
|
||||
function syncToggles() {
|
||||
ui.compB.setAttribute('aria-pressed', compress ? 'true' : 'false');
|
||||
ui.onlyB.setAttribute('aria-pressed', only ? 'true' : 'false');
|
||||
ui.repB.setAttribute('aria-pressed', repeat ? 'true' : 'false');
|
||||
ui.selB.setAttribute('aria-pressed', selecting ? 'true' : 'false');
|
||||
ui.selB.textContent = loop ? t('rp.loopclear') : t('rp.select');
|
||||
ui.loopNote.textContent = loop ? t('rp.loop', { a: clockStr(loop.a), b: clockStr(loop.b) }) : '';
|
||||
|
||||
Reference in new issue
Block a user