feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation

Phase 1: in-memory ConnectionManager viewport fan-out, 500ms map debounce,
cachetools TTLCache, background masscan/ffmpeg, compose memory caps.

Phase 2: PostGIS geofences + ST_Intersects alerts, Timescale 1-min CAGGs
and timestamp playback, FIRMS/WFIGS x firefighting ADS-B within 20 miles.

No Redis/Kafka/Celery.
This commit is contained in:
Sirius DevOps 2026-08-28 09:33:19 -04:00
commit 5ea9a4e879
28 changed files with 2318 additions and 50 deletions

View file

@ -30,7 +30,16 @@ services:
POSTGRES_DB: ${DB_NAME:-osint_data}
# Ensure TimescaleDB is preloaded (conf.d drop-in may be ignored by the
# official image's runtime-generated postgresql.conf, so pass it explicitly).
command: ["-c", "shared_preload_libraries=timescaledb"]
# shared_buffers capped at 2GB for Pi 5 8GB / 4 cores.
command:
[
"-c", "shared_preload_libraries=timescaledb",
"-c", "shared_buffers=2GB",
]
deploy:
resources:
limits:
memory: 3G
ports:
- "127.0.0.1:5432:5432"
volumes:
@ -124,6 +133,10 @@ services:
AISSTREAM_IN_APP: ${AISSTREAM_IN_APP:-1}
ports:
- "127.0.0.1:8000:8000"
deploy:
resources:
limits:
memory: 2G
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/api/health').status==200 else 1)\""]
interval: 30s