← Status board  /  Phase 1

Phase 1 — Docker provisioning and image pull The lab environment the measurements live in: engine version, storage driver, CPU and memory ceilings, the two pinned images, the ports and which one had to move. Everything below was read back from the running host, not assumed from a template.

Status complete Engine Docker 29.9.3 · Compose v5.7.1 Backend WSL2 6.6.87.2 · overlayfs Images 2, pinned by digest Next Phase 2 · Subset

1 Summary

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.

Engine
29.9.3
Compose v5.7.1 · v2 plugin path
Images
6.28 GB
5.18 GB StarRocks + 1.10 GB MySQL 8.0.46
Memory ceiling
8 GiB
4 GiB per service, plus JVM caps inside
Healthy in
40 s
both healthchecks green after up -d
Why this phase is not ceremony

A 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.

2 Host and engine

Read with docker --version, docker compose version and docker info on 2026-11-25, before any image was pulled.

ItemMeasured valueConsequence for the lab
Docker Engine29.9.3Modern enough for mem_limit and cpus in Compose without the v3 workaround.
Composev5.7.1 (v2 plugin)docker compose works as a subcommand; no docker-compose binary needed.
Backend / kernelWSL2 · 6.6.87.2Real Linux kernel, so StarRocks' BE runs native, not in a user-space emulation layer.
Storage driveroverlayfsCopy-on-write; image layers shared between runs, so a rebuild does not re-download 5 GB.
CPU8 vCPUTwo services capped at 4 CPUs each: they can never run at the same time on all cores.
Memory24.89 GBEnough for 4 + 4 GiB caps plus the Windows host without swapping.
Disk on E:168.6 GB freeLarge enough for both images, the 0.69 GB dataset and the StarRocks storage copy.

3 Resource limits — the symmetric cap

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

Why 4 GiB, and not "whatever the host has"

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 second cap inside StarRocks

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.

Measured at rest

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.

The trap that was avoided

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.

4 Images, sizes and digests

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.

ImageSizeDigest recorded in docker-compose.yml
starrocks/allin1-ubuntu5.18 GBsha256:faf5f6b17a301b276b829482af11d350004833dc9162232e1083a2aad0fa8b2a
mysql1.10 GBsha256:7dcddc01f13bab2f15cde676d44d01f61fc9f99fe7785e86196dfc07d358ae2b

Why allin1 and not the three-container deployment

The 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.

5 Ports — and the one that had to move

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.

HostContainerServicePurpose
90309030StarRocks FEMySQL protocol — the port every query uses.
80308030StarRocks FEHTTP — Stream Load entry point.
80408040StarRocks BEHTTP — where rejected rows are described.
133063306MySQL 8.0.46Remapped: host 3306 was already taken on this machine.
Deviation

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.

6 Services up, and what they report

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.

StarRocks

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.

MySQL

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.

What was confirmed inside the StarRocks image

CheckResultWhy it was checked
CPU flagsAVX2 and AVX-512StarRocks' 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.
JavaOpenJDK 17.0.20StarRocks 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 OSUbuntu 22.04.5 LTSMatches the documented support matrix; libssl and glibc versions follow from it.
Architecturex86_64The host is x86_64, so no Rosetta-style emulation is in the path between the JVM and the CPU.

7 Deviations and their cost

Three things differ from a clean-slate installation. None of them changes the comparison, and all of them are stated rather than smoothed.

DeviationEffect
Docker Desktop was already installedThe 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 13306None on the SQL or the timings; it changes the command line of every client invocation.
WSL2 memory set to 24 GB in .wslconfigAllows the two 4 GiB caps to coexist with the Windows host. The caps are what the benchmark runs under, not the 24 GB.

8 Gate

Gate met

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.

9 Evidence