Skip to content

Phase 1: streamer node config + compose stack - #15

Open
cycle-five-muse-personal[bot] wants to merge 1 commit into
masterfrom
phase1/streamer-config
Open

cycle-five-muse-personal[bot] wants to merge 1 commit into
masterfrom
phase1/streamer-config

Conversation

@cycle-five-muse-personal

Copy link
Copy Markdown
Contributor

Phase 1 of docs/DESIGN-two-node-split.md — the streamer half of the split, as configuration. No bot changes; the all-in-one node remains the live one and this stack idles as a spare until Phase 3.

What's here

config/streamer/application.yml — derived from config/application.yml with exactly the design deltas, everything else identical:

  • D4: clients: [TV] only — a TV failure is a hard failure; no un-authed fallback ever leaves the clean IP
  • D1: OAuth enabled; this node holds the only account credential
  • D2: the pot: block is omitted entirely (verified null-safe in the 1.18.2 loader — YoutubePluginLoader checks pot != null)
  • allowSearch: false; no route planner (rotation is the resolver's mechanism)
  • Header comment in the file lists the deltas; plugin deps, sources, filters, LavaSrc chain and cipher config are byte-identical to base

docker-compose.streamer.yml — playback-only stack: lavalink (same 4.2.2 pin) + yt-cipher + dockerproxy + its own admin panel (for the OAuth device flow into the streamer config) with POT_REFRESH_ENABLED=false and no bgutil-pot service. Ports/data offset (2334 / 8081 / 2376, ./data-streamer) so it can co-exist with the main stack during migration; header documents the one shared port (cipher 8001) and the separate-host target.

Tests: admin/tests/test_streamer_config.py — 8 contract tests pinning the deltas and the parity (plugin versions, sources, LavaSrc, cipher), so the two configs can't silently drift. Full suite: 171 passed, pyflakes clean. CI now also renders the streamer compose file.

Design doc: status line updated (Phase 0 merged in #14, Phase 1 = this PR) and a Phase 3 caveat recorded in §4 — LavaSrc mirrors at playback time, so the split backend must hand the streamer the already-mirrored YouTube track resolved on the resolver, not a raw LavaSrc track.

Not verifiable from here: an actual boot of the streamer stack (no Docker host on this VM) — docker compose config renders in CI, and the config contract is test-pinned, but first real boot happens on deploy.

config/streamer/application.yml: derived from the all-in-one config
with exactly the design deltas - clients [TV] only (D4), oauth on (D1),
pot block omitted (D2; loader is null-safe in 1.18.2), allowSearch off,
no route planner. docker-compose.streamer.yml: playback-only stack
(lavalink + yt-cipher + dockerproxy + own admin for the OAuth flow,
POT_REFRESH_ENABLED=false, no bgutil-pot), ports/data offset so it can
co-exist with the main stack during migration. Contract tests pin
plugin-version parity and the deltas; CI now also renders the streamer
compose file. Design doc: status + LavaSrc mirror-at-playback caveat
for Phase 3. 171 tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants