Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions tidb-stmt-cache/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
version: '3.8'

# Minimal single-node TiDB for keploy e2e.
#
# Why this stack and not the full pingcap/tidb-docker-compose with PD + TiKV?
# - The sample only exercises the SQL layer (MySQL wire protocol on :4000).
# Coordination / storage flakiness in a 3-container topology adds CI noise
# without buying us any matcher coverage.
# - `--store=unistore` keeps everything in a single process backed by an
# in-memory storage engine. Boot time is ~5s vs ~30-45s for a full PD+TiKV
# stack. Data is volatile, which is exactly what we want for keploy CI.
# - The default `pingcap/tidb` entrypoint already runs in unistore (single
# process, in-memory) mode when no PD address is supplied, which is exactly
# what we want for keploy CI: ~5s boot, volatile data, no extra containers.
#
# Pin: v8.5.x is the LTS line current at the time this sample was added.
# Bump as new LTS lines ship; the matcher behaviour we're testing has been
# stable across TiDB versions because it depends on the MySQL wire protocol.
services:
tidb:
image: pingcap/tidb:v8.5.6
command:
- --store=unistore
- --path=""
- --host=0.0.0.0
- --advertise-address=tidb
- --log-level=error
ports:
- "4000:4000" # MySQL wire protocol
- "10080:10080" # status / readiness
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:10080/status || exit 1"]
interval: 2s
timeout: 2s
retries: 30
Loading