Skip to content

Commit eb3db5b

Browse files
authored
fix(tidb-stmt-cache): use TiDB built-in defaults, drop bogus command flags (#139)
Signed-off-by: Yash Khare <khareyash05@gmail.com>
1 parent 9738912 commit eb3db5b

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

tidb-stmt-cache/docker-compose.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
version: '3.8'
2-
31
# Minimal single-node TiDB for keploy e2e.
42
#
53
# Why this stack and not the full pingcap/tidb-docker-compose with PD + TiKV?
64
# - The sample only exercises the SQL layer (MySQL wire protocol on :4000).
75
# Coordination / storage flakiness in a 3-container topology adds CI noise
86
# without buying us any matcher coverage.
9-
# - `--store=unistore` keeps everything in a single process backed by an
10-
# in-memory storage engine. Boot time is ~5s vs ~30-45s for a full PD+TiKV
11-
# stack. Data is volatile, which is exactly what we want for keploy CI.
7+
# - The default `pingcap/tidb` entrypoint already runs in unistore (single
8+
# process, in-memory) mode when no PD address is supplied, which is exactly
9+
# what we want for keploy CI: ~5s boot, volatile data, no extra containers.
1210
#
1311
# Pin: v8.5.x is the LTS line current at the time this sample was added.
1412
# Bump as new LTS lines ship; the matcher behaviour we're testing has been
1513
# stable across TiDB versions because it depends on the MySQL wire protocol.
1614
services:
1715
tidb:
1816
image: pingcap/tidb:v8.5.6
19-
command:
20-
- --store=unistore
21-
- --path=""
22-
- --host=0.0.0.0
23-
- --advertise-address=tidb
24-
- --log-level=error
2517
ports:
2618
- "4000:4000" # MySQL wire protocol
2719
- "10080:10080" # status / readiness
28-
healthcheck:
29-
test: ["CMD-SHELL", "wget -qO- http://localhost:10080/status || exit 1"]
30-
interval: 2s
31-
timeout: 2s
32-
retries: 30

0 commit comments

Comments
 (0)