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
+15
-7
@@ -39,8 +39,12 @@ jobs:
|
||||
for f in glob.glob('.gitea/**/*.yml', recursive=True):
|
||||
yaml.safe_load(open(f))
|
||||
"
|
||||
- name: Docker compose config
|
||||
run: docker compose config --quiet
|
||||
- name: Docker compose config (hub and probe)
|
||||
run: |
|
||||
docker compose config --quiet
|
||||
URUTAU_HUB=https://hub.example.org URUTAU_PROBE_NAME=ci docker compose -f deploy/probe/docker-compose.yml config --quiet
|
||||
- name: shellcheck (host kit)
|
||||
run: docker run --rm -v "$PWD:/mnt:ro" koalaman/shellcheck:v0.10.0 deploy/host/install.sh
|
||||
- name: gofmt
|
||||
run: test -z "$(gofmt -l .)"
|
||||
- run: go vet ./...
|
||||
@@ -70,15 +74,19 @@ jobs:
|
||||
govulncheck ./...
|
||||
|
||||
image:
|
||||
name: Docker image (build and smoke test)
|
||||
name: Docker images (build and smoke test)
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
runs-on: linux-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- name: Build
|
||||
run: docker build -t "urutau-ci:${{ gitea.run_id }}" .
|
||||
- name: Smoke test
|
||||
- name: Build hub
|
||||
run: docker build --target hub -t "urutau-ci:${{ gitea.run_id }}" .
|
||||
- name: Build probe
|
||||
run: docker build --target probe -t "urutau-probe-ci:${{ gitea.run_id }}" .
|
||||
- name: Smoke test (hub)
|
||||
run: scripts/smoke-image.sh "urutau-ci:${{ gitea.run_id }}"
|
||||
- name: Smoke test (probe, under 15 MB)
|
||||
run: scripts/smoke-probe.sh "urutau-probe-ci:${{ gitea.run_id }}"
|
||||
- name: Clean up
|
||||
if: always()
|
||||
run: docker rmi -f "urutau-ci:${{ gitea.run_id }}" >/dev/null 2>&1 || true
|
||||
run: docker rmi -f "urutau-ci:${{ gitea.run_id }}" "urutau-probe-ci:${{ gitea.run_id }}" >/dev/null 2>&1 || true
|
||||
Reference in new issue
Block a user