Tutorial 02: Reproducible pgbench & sysbench Lab¶
Build the shared benchmark runner image, validate Compose syntax, regenerate charts, and run unit tests.
flowchart LR
A["1. Build Runner Image"] --> B["2. Validate Compose"]
B --> C["3. Rebuild Charts & Explorer"]
C --> D["4. Run make test"]
Prerequisites¶
- Complete Tutorial 01: First Docker PoC Lab
- Python
3.10+(PyYAML,matplotlib)
Step 1: Build Benchmark Image¶
Build multi-db-pgbench-sysbench:latest from scripts/Dockerfile.bench:
Expected Output: Image builds cleanly with pgbench, sysbench, and psycopg.
Step 2: Validate Compose Stack¶
Expected Output: Command exits with code 0.
Step 3: Rebuild Charts, Explorer, and Test Suite¶
Expected Output: Charts (assets/charts/chart_01_tps_log_all_suites.png to chart_13_*), dashboard/index.html, and all unittest checks pass.
Continue to How-To Guide 01: Run Topology Benchmarks.