Files
DashBoard/requirements.txt
egg dbe0da057c feat(trace-pipeline): memory triage, async job queue, and NDJSON streaming
Three proposals addressing the 2026-02-25 trace pipeline OOM crash (114K CIDs):

1. trace-events-memory-triage: fetchmany iterator (read_sql_df_slow_iter),
   admission control (50K CID limit for non-MSD), cache skip for large queries,
   early memory release with gc.collect()

2. trace-async-job-queue: RQ-based async jobs for queries >20K CIDs,
   separate worker process with isolated memory, frontend polling via
   useTraceProgress composable, systemd service + deploy scripts

3. trace-streaming-response: chunked Redis storage (TRACE_STREAM_BATCH_SIZE=5000),
   NDJSON stream endpoint (GET /api/trace/job/<id>/stream), frontend
   ReadableStream consumer for progressive rendering, backward-compatible
   with legacy single-key storage

All three proposals archived. 1101 tests pass, frontend builds clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 21:01:27 +08:00

41 lines
1.1 KiB
Plaintext

# MES Dashboard Dependencies
# ===========================
#
# Version Strategy:
# Use bounded version ranges (>=,<) to avoid accidental major-version breaks.
# For reproducible builds, generate a lock file: pip freeze > requirements.lock
#
# Python Version: >=3.9 (recommended: 3.11)
# Core Framework
flask>=3.0.0,<4.0.0
# Database
oracledb>=2.0.0,<4.0.0
sqlalchemy>=2.0.0,<3.0.0
# Data Processing
pandas==2.3.3 # pandas 3.x removed DBAPI2 flow used by current pd.read_sql + SQLAlchemy usage
pyarrow>=17.0.0,<20.0.0 # Parquet serialization for Redis DataFrame cache
openpyxl>=3.0.0 # Excel file support
# Cache (Redis)
redis>=5.0.0,<6.0.0
hiredis>=2.0.0,<4.0.0 # C parser for better Redis performance
# Task Queue (async trace jobs)
rq>=1.16.0,<2.0.0
# HTTP Client
requests>=2.28.0,<3.0.0
# Configuration
python-dotenv>=1.0.0,<2.0.0
# WSGI Server
gunicorn>=21.2.0,<25.0.0 # Linux/macOS production server
waitress>=2.1.2,<4.0.0; platform_system=="Windows" # Windows alternative
# System Monitoring
psutil>=5.9.0,<7.0.0 # Process and system utilities