Docker Desktop was already present on this host, so the phase became verification rather than installation: confirm the engine and the Compose v2 plugin answer, record the backend and storage driver, cap both services so they cannot compete for the same memory, pin the two images by digest, free the ports, and prove the image actually carries what StarRocks needs — AVX2 and a JDK 17.
up -dA container that silently gets 2 GB instead of 4 GB does not fail — it spills to disk and every aggregation in Phase 5 becomes a measurement of swap. The caps are part of the benchmark conditions, not housekeeping, so they are recorded here with the value that was actually applied.
Read with docker --version, docker compose version and docker info on 2026-11-25, before any image was pulled.
| Item | Measured value | Consequence for the lab |
|---|---|---|
| Docker Engine | 29.9.3 | Modern enough for mem_limit and cpus in Compose without the v3 workaround. |
| Compose | v5.7.1 (v2 plugin) | docker compose works as a subcommand; no docker-compose binary needed. |
| Backend / kernel | WSL2 · 6.6.87.2 | Real Linux kernel, so StarRocks' BE runs native, not in a user-space emulation layer. |
| Storage driver | overlayfs | Copy-on-write; image layers shared between runs, so a rebuild does not re-download 5 GB. |
| CPU | 8 vCPU | Two services capped at 4 CPUs each: they can never run at the same time on all cores. |
| Memory | 24.89 GB | Enough for 4 + 4 GiB caps plus the Windows host without swapping. |
Disk on E: | 168.6 GB free | Large enough for both images, the 0.69 GB dataset and the StarRocks storage copy. |
The comparison is only fair if both engines live under the same ceiling. The host has 24.89 GB, but the two containers are each capped at 4 GiB and 4 CPUs, applied in docker-compose.yml so the limit travels with the file and not with whoever typed the command.
services:
starrocks:
mem_limit: 4g
cpus: 4.0
mysql:
mem_limit: 4g
cpus: 4.0
The subset is 0.69 GB of text. In StarRocks that compresses to a fraction of it; in MySQL, with a 1 GB buffer pool, it is a working set that fits. 4 GiB is comfortably above the need and far below the host, so neither engine is starved and neither can quietly use the other's headroom. It also mirrors the memory a reader would actually give a side-by-side test on a laptop.
The allin1 image runs the FE and the BE in one container; the JVM would otherwise size its heap from the host's 24.89 GB and ignore mem_limit until the container was killed. The BE is what reads the data, so the memory notice inside the image sets memory_limit below the container cap.
StarRocks: 852 MiB of its 4 GiB. MySQL: 457 MiB of its 4 GiB.
Both leave the full dataset room to be cached, which is the condition Phase 5 assumes: warm cache on both sides.
Without --innodb-buffer-pool-size=1G, MySQL 8.0 would have started with a 128 MB pool and spent the benchmark reading from disk — a loss that says nothing about MySQL and everything about a missing flag.
Both images are pinned by digest, not by tag. A tag is a promise; a digest is the bytes that were actually measured. If the lab is rebuilt in a month and the tag has moved, the comparison would silently change hardware.
| Image | Size | Digest recorded in docker-compose.yml |
|---|---|---|
starrocks/allin1-ubuntu | 5.18 GB | sha256:faf5f6b17a301b276b829482af11d350004833dc9162232e1083a2aad0fa8b2a |
mysql | 1.10 GB | sha256:7dcddc01f13bab2f15cde676d44d01f61fc9f99fe7785e86196dfc07d358ae2b |
allin1 and not the three-container deploymentThe production shape of StarRocks is FE plus one or more BE nodes; the allin1 image packs FE and BE into one container. With a single BE, three containers would add orchestration and network hops without adding a single row of parallelism, and the benchmark would start measuring Docker networking. The trade-off is accepted and recorded: this lab has one BE, so replication_num must be 1, and no statement here about multi-BE scaling is supported by evidence.
Everything is bound to loopback. Nothing in this lab is reachable from the network, which matters because the MySQL service starts with a trivial password and --local-infile=1.
| Host | Container | Service | Purpose |
|---|---|---|---|
| 9030 | 9030 | StarRocks FE | MySQL protocol — the port every query uses. |
| 8030 | 8030 | StarRocks FE | HTTP — Stream Load entry point. |
| 8040 | 8040 | StarRocks BE | HTTP — where rejected rows are described. |
| 13306 | 3306 | MySQL 8.0.46 | Remapped: host 3306 was already taken on this machine. |
MySQL listens on 13306 on the host, not 3306. Inside the container and inside the Compose network the port is still 3306, so nothing in the SQL is affected — but every command in the evidence files and the video script must use -P 13306, and a reader copying a snippet without noticing would connect to something else entirely.
docker compose up -d brought both services to healthy in 40 s. The versions below were read from inside the running containers, which is the only place they matter.
SELECT current_version(); -> 3.5.21-85fccf8 SHOW BACKENDS; BackendId 10001 Alive true Version 3.5.21-85fccf8
A single BE, alive, on the same version as the FE. If the BE had failed to register, every query would still plan and then fail at execution — the failure mode looks like a slow query rather than a broken cluster.
SELECT VERSION(); -> 8.0.46 SHOW VARIABLES LIKE 'innodb_buffer_pool_size'; -> 1073741824 (1 GB)
Same minor version as the production source, which is the point: the reference counts from Phase 0 can be reproduced inside the lab without a version-induced difference.
| Check | Result | Why it was checked |
|---|---|---|
| CPU flags | AVX2 and AVX-512 | StarRocks' vectorised execution uses AVX2; without it the binary either refuses to start or falls back. AVX-512 additionally confirms the host is exposing the full feature set to WSL2. |
| Java | OpenJDK 17.0.20 | StarRocks 3.5 requires JDK 17. An image with JDK 11 would start the FE and fail the BE with a message that does not mention Java. |
| Base OS | Ubuntu 22.04.5 LTS | Matches the documented support matrix; libssl and glibc versions follow from it. |
| Architecture | x86_64 | The host is x86_64, so no Rosetta-style emulation is in the path between the JVM and the CPU. |
Three things differ from a clean-slate installation. None of them changes the comparison, and all of them are stated rather than smoothed.
| Deviation | Effect |
|---|---|
| Docker Desktop was already installed | The phase verified instead of installing. On a fresh machine the same phase includes the download and the WSL2 backend enablement; the acceptance criteria do not change. |
| MySQL published on 13306 | None on the SQL or the timings; it changes the command line of every client invocation. |
WSL2 memory set to 24 GB in .wslconfig | Allows the two 4 GiB caps to coexist with the Windows host. The caps are what the benchmark runs under, not the 24 GB. |
Both images are present locally with their digests written into docker-compose.yml; the four ports are free and bound to loopback; AVX2 and JDK ≥ 17 are confirmed inside the StarRocks image; both services report healthy and answer on their MySQL protocol ports; memory at rest is 852 MiB and 457 MiB against a 4 GiB ceiling each.
The pin is what makes the next phase repeatable: the DDL and the load that follow are executed against 3.5.21-85fccf8 and 8.0.46, and those exact builds are named in every evidence file.
docker-compose.yml — service definitions, caps, port mapping, digests, MySQL flags and healthchecks.sql/00_discover.out.txt — the same host and engine facts as read by the discovery script.docs/index.html §2 — the environment summary as shown on the status board.