-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.distributed.yml
More file actions
77 lines (74 loc) · 2.58 KB
/
Copy pathdocker-compose.distributed.yml
File metadata and controls
77 lines (74 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# docker-compose.distributed.yml — Distributed SQE stack
#
# Extends docker-compose.test.yml with coordinator + 2 workers.
# Uses the same Polaris + RustFS as the integration test stack.
#
# Usage (the quickstart/distributed scenario wraps all three steps):
# docker compose -f docker-compose.test.yml -f docker-compose.distributed.yml up --build -d
# ./scripts/bootstrap-distributed.sh
# scripts/test.sh scenario distributed # or: quickstart/distributed/run.sh --check
services:
# ── SQE Coordinator ────────────────────────────────────────
coordinator:
build: .
entrypoint: ["sqe-server", "--config", "/config/coordinator.toml"]
volumes:
- ./tests/distributed/coordinator.toml:/config/coordinator.toml:ro
ports:
- "60051:50051" # Flight SQL
- "28080:8080" # Trino HTTP
- "29090:9090" # Prometheus metrics
environment:
RUST_LOG: sqe=info,warn
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:9091/healthz"]
interval: 10s
timeout: 3s
retries: 10
start_period: 20s
mem_limit: 8g
depends_on:
polaris:
condition: service_healthy
rustfs:
condition: service_started
# ── SQE Worker 1 ───────────────────────────────────────────
worker-1:
build: .
entrypoint: ["sqe-worker", "--config", "/config/worker.toml"]
volumes:
- ./tests/distributed/worker.toml:/config/worker.toml:ro
ports:
- "60061:50052"
- "29091:9091"
environment:
RUST_LOG: sqe=info,warn
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:9092/healthz"]
interval: 10s
timeout: 3s
retries: 10
start_period: 20s
mem_limit: 4g
depends_on:
- coordinator
# ── SQE Worker 2 ───────────────────────────────────────────
worker-2:
build: .
entrypoint: ["sqe-worker", "--config", "/config/worker.toml"]
volumes:
- ./tests/distributed/worker.toml:/config/worker.toml:ro
ports:
- "60062:50052"
- "29092:9091"
environment:
RUST_LOG: sqe=info,warn
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:9092/healthz"]
interval: 10s
timeout: 3s
retries: 10
start_period: 20s
mem_limit: 4g
depends_on:
- coordinator