Skip to content

Commit 0e3e070

Browse files
committed
clean: remove sentinel-proxy service from docker-compose and simplify config
1 parent c1eeb43 commit 0e3e070

4 files changed

Lines changed: 10 additions & 89 deletions

File tree

.environment/mainnet/config.example.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,7 @@
1414
"ethereumUrls": "https://mainnet.infura.io/v3/YOUR_INFURA_KEY"
1515
},
1616
"sentinel": {
17-
"proxyUrl": "http://sentinel-proxy:8080",
18-
"backends": {
19-
"archiverUrl": "https://mainnet-archiver.example.com/rpc",
20-
"prunedUrl": "https://mainnet-sentinel.example.com/rpc"
21-
},
22-
"proxy": {
23-
"port": 8080,
24-
"healthCheckIntervalMs": 30000,
25-
"integrityCheckIntervalMs": 60000,
26-
"integrityCheckEpochs": 10,
27-
"requestTimeoutMs": 30000,
28-
"slotsPerEpoch": 32,
29-
"archiverThresholdEpochs": 100,
30-
"expectedValidators": 24
31-
}
17+
"proxyUrl": "http://your-aztec-node:8080"
3218
},
3319
"contracts": {
3420
"rollupAddress": "0x603bb2c05D474794ea97805e8De69bCcFb3bCA12",

.environment/testnet/config.example.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,7 @@
1414
"ethereumUrls": "https://sepolia.infura.io/v3/YOUR_INFURA_KEY"
1515
},
1616
"sentinel": {
17-
"proxyUrl": "http://sentinel-proxy:8080",
18-
"backends": {
19-
"archiverUrl": "https://testnet-archiver.example.com/rpc",
20-
"prunedUrl": "https://testnet-sentinel.example.com/rpc"
21-
},
22-
"proxy": {
23-
"port": 8080,
24-
"healthCheckIntervalMs": 30000,
25-
"integrityCheckIntervalMs": 60000,
26-
"integrityCheckEpochs": 10,
27-
"requestTimeoutMs": 30000,
28-
"slotsPerEpoch": 32,
29-
"archiverThresholdEpochs": 100,
30-
"expectedValidators": 24
31-
}
17+
"proxyUrl": "http://your-aztec-node:8080"
3218
},
3319
"contracts": {
3420
"rollupAddress": "0xebd99ff0ff6677205509ae73f93d0ca52ac85d67",

docker-compose.yml

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
DATABASE_URL: postgresql://dashtec:dashtec@${DB_HOST:-postgres-mainnet}:5432/dashtec
1616
REDIS_URL: redis://:dashtec@${REDIS_HOST:-redis-mainnet}:6379
1717
DATABASE_URL_REPLICA: postgresql://dashtec:dashtec@${DB_HOST:-postgres-mainnet}:5432/dashtec
18-
NEXT_SENTINEL_URL: ${NEXT_SENTINEL_URL:-http://sentinel-proxy:8080/pruned}
18+
NEXT_SENTINEL_URL: ${NEXT_SENTINEL_URL}
1919
restart: unless-stopped
2020
healthcheck:
2121
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
@@ -69,7 +69,7 @@ services:
6969
DATABASE_URL: postgresql://dashtec:dashtec@${DB_HOST:-postgres-mainnet}:5432/dashtec
7070
DATABASE_READ_REPLICA_URL: postgresql://dashtec:dashtec@${DB_HOST:-postgres-mainnet}:5432/dashtec
7171
REDIS_URL: redis://:dashtec@${REDIS_HOST:-redis-mainnet}:6379
72-
VALIDATOR_STATS_RPC_URL: ${VALIDATOR_STATS_RPC_URL:-http://sentinel-proxy:8080/archiver}
72+
VALIDATOR_STATS_RPC_URL: ${VALIDATOR_STATS_RPC_URL}
7373
restart: unless-stopped
7474
healthcheck:
7575
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
@@ -101,26 +101,6 @@ services:
101101
profiles:
102102
- mainnet
103103

104-
sentinel-proxy:
105-
build:
106-
context: .
107-
dockerfile: services/sentinel-proxy-go/Dockerfile
108-
image: dashtec-sentinel-proxy:latest
109-
container_name: dashtec-sentinel-proxy
110-
ports:
111-
- "${SENTINEL_PROXY_PORT:-8080}:8080"
112-
env_file:
113-
- services/sentinel-proxy-go/.env
114-
restart: unless-stopped
115-
healthcheck:
116-
test: ["CMD", "curl", "-f", "http://localhost:8080/ready"]
117-
interval: 30s
118-
timeout: 10s
119-
retries: 3
120-
start_period: 10s
121-
profiles:
122-
- mainnet
123-
124104
# Testnet Web
125105
web-testnet:
126106
build:
@@ -136,7 +116,7 @@ services:
136116
DATABASE_URL: postgresql://dashtec:dashtec@postgres-testnet:5432/dashtec
137117
REDIS_URL: redis://:dashtec@redis-testnet:6379
138118
DATABASE_URL_REPLICA: postgresql://dashtec:dashtec@postgres-testnet:5432/dashtec
139-
NEXT_SENTINEL_URL: ${NEXT_SENTINEL_URL_TESTNET:-http://sentinel-proxy-testnet:8080/pruned}
119+
NEXT_SENTINEL_URL: ${NEXT_SENTINEL_URL_TESTNET}
140120
restart: unless-stopped
141121
healthcheck:
142122
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
@@ -191,7 +171,7 @@ services:
191171
DATABASE_URL: postgresql://dashtec:dashtec@postgres-testnet:5432/dashtec
192172
DATABASE_READ_REPLICA_URL: postgresql://dashtec:dashtec@postgres-testnet:5432/dashtec
193173
REDIS_URL: redis://:dashtec@redis-testnet:6379
194-
VALIDATOR_STATS_RPC_URL: ${VALIDATOR_STATS_RPC_URL_TESTNET:-http://sentinel-proxy-testnet:8080/archiver}
174+
VALIDATOR_STATS_RPC_URL: ${VALIDATOR_STATS_RPC_URL_TESTNET}
195175
restart: unless-stopped
196176
healthcheck:
197177
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
@@ -224,27 +204,6 @@ services:
224204
profiles:
225205
- testnet
226206

227-
# Testnet Sentinel Proxy
228-
sentinel-proxy-testnet:
229-
build:
230-
context: .
231-
dockerfile: services/sentinel-proxy-go/Dockerfile
232-
image: dashtec-sentinel-proxy:testnet
233-
container_name: dashtec-sentinel-proxy-testnet
234-
ports:
235-
- "${SENTINEL_PROXY_TESTNET_PORT:-8081}:8080"
236-
env_file:
237-
- services/sentinel-proxy-go/.env
238-
restart: unless-stopped
239-
healthcheck:
240-
test: ["CMD", "curl", "-f", "http://localhost:8080/ready"]
241-
interval: 30s
242-
timeout: 10s
243-
retries: 3
244-
start_period: 10s
245-
profiles:
246-
- testnet
247-
248207
# Mainnet Database
249208
postgres-mainnet:
250209
image: postgres:16-alpine

docs/SETUP.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,13 @@ pnpm env:propagate testnet
9898

9999
### `sentinel`
100100

101-
The sentinel is a reverse proxy that sits in front of Aztec node RPC endpoints, providing load balancing and health checking.
101+
URL configuration for the Aztec node RPC endpoint. This can point directly to an Aztec node or to a reverse proxy that load-balances across multiple nodes.
102102

103103
| Property | Type | Example | Description |
104104
|----------|------|---------|-------------|
105-
| `proxyUrl` | string | `"http://sentinel-proxy:8080"` | Base URL of the sentinel proxy. The web app appends `/pruned` for pruned node access. The indexer-custom appends `/archiver` for archiver access. |
106-
| `backends.archiverUrl` | string | `"https://archiver.example.com/rpc"` | Aztec archiver node RPC URL(s). Comma-separated for multiple backends. Archiver nodes store full historical data. |
107-
| `backends.prunedUrl` | string | `"https://pruned.example.com/rpc"` | Aztec pruned node RPC URL(s). Comma-separated for multiple backends. Pruned nodes store recent data only. |
108-
| `proxy.port` | number | `8080` | Port the sentinel proxy listens on. |
109-
| `proxy.healthCheckIntervalMs` | number | `30000` | How often the proxy health-checks its backend nodes (ms). |
110-
| `proxy.integrityCheckIntervalMs` | number | `60000` | How often the proxy verifies data consistency across backends (ms). |
111-
| `proxy.integrityCheckEpochs` | number | `10` | Number of recent epochs to compare during integrity checks. |
112-
| `proxy.requestTimeoutMs` | number | `30000` | Timeout for individual RPC requests forwarded to backends (ms). |
113-
| `proxy.slotsPerEpoch` | number | `32` | Aztec network parameter — slots per epoch. |
114-
| `proxy.archiverThresholdEpochs` | number | `100` | Epoch lag threshold before the proxy considers an archiver unhealthy. |
115-
| `proxy.expectedValidators` | number | `24` | Expected validator count for integrity checks. |
116-
117-
**Used by:** web app (proxyUrl), indexer-custom (proxyUrl)
105+
| `proxyUrl` | string | `"http://your-aztec-node:8080"` | Base URL of the Aztec RPC endpoint. The web app appends `/pruned` for pruned node access. The indexer-custom appends `/archiver` for archiver access. |
106+
107+
**Used by:** web app, indexer-custom
118108

119109
### `contracts`
120110

0 commit comments

Comments
 (0)