Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions frameworks/trillium-tuned/compose.production-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ services:
- appsock:/run/app
# authsvc has to be answering, not merely started: the edge asks it about every /api
# request, so a stack that comes up without it measures 5xx from the edge and never
# reaches the server at all.
# reaches the server at all. The server likewise: started is not listening, and until
# it binds the UDS every request the edge forwards comes back a 502.
depends_on:
authsvc:
condition: service_healthy
server:
condition: service_started
condition: service_healthy

cache:
image: redis:7-alpine
Expand Down Expand Up @@ -107,12 +108,25 @@ services:
- REDIS_URL=redis://127.0.0.1:6379
- DATASET_PATH=/data/dataset.json
- RUST_LOG=info
# The edge serves /static/* itself, but the server builds its StaticFileHandler at startup
# either way and exits if the directory is missing, so it gets the mount too, as in the
# gateway stacks.
volumes:
- ${DATA_DIR}/dataset.json:/data/dataset.json:ro
- ${DATA_DIR}/static:/data/static:ro
- appsock:/run/app
depends_on:
cache:
condition: service_healthy
# The socket appears once main.rs has built its state, cleared any stale socket and bound
# it, so from then on the edge's connections are accepted.
healthcheck:
test: ["CMD", "test", "-S", "/run/app/app.sock"]
interval: 30s
timeout: 2s
retries: 3
start_period: 30s
start_interval: 1s

# Shared rendezvous for the UDS. network_mode: host shares the net namespace but not the
# filesystem, so the socket needs an explicit shared volume mounted into both at the same path.
Expand Down
3 changes: 2 additions & 1 deletion frameworks/trillium-tuned/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"echo-ws-pipeline",
"echo-ws-limited",
"gateway-64",
"gateway-h3"
"gateway-h3",
"production-stack"
],
"maintainers": [
"jbr"
Expand Down
18 changes: 16 additions & 2 deletions frameworks/trillium/compose.production-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ services:
- appsock:/run/app
# authsvc has to be answering, not merely started: the edge asks it about every /api
# request, so a stack that comes up without it measures 5xx from the edge and never
# reaches the server at all.
# reaches the server at all. The server likewise: started is not listening, and until
# it binds the UDS every request the edge forwards comes back a 502.
depends_on:
authsvc:
condition: service_healthy
server:
condition: service_started
condition: service_healthy

cache:
image: redis:7-alpine
Expand Down Expand Up @@ -107,12 +108,25 @@ services:
- REDIS_URL=redis://127.0.0.1:6379
- DATASET_PATH=/data/dataset.json
- RUST_LOG=info
# The edge serves /static/* itself, but the server builds its StaticFileHandler at startup
# either way and exits if the directory is missing, so it gets the mount too, as in the
# gateway stacks.
volumes:
- ${DATA_DIR}/dataset.json:/data/dataset.json:ro
- ${DATA_DIR}/static:/data/static:ro
- appsock:/run/app
depends_on:
cache:
condition: service_healthy
# The socket appears once main.rs has built its state, cleared any stale socket and bound
# it, so from then on the edge's connections are accepted.
healthcheck:
test: ["CMD", "test", "-S", "/run/app/app.sock"]
interval: 30s
timeout: 2s
retries: 3
start_period: 30s
start_interval: 1s

# Shared rendezvous for the UDS. network_mode: host shares the net namespace but not the
# filesystem, so the socket needs an explicit shared volume mounted into both at the same path.
Expand Down
3 changes: 2 additions & 1 deletion frameworks/trillium/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"echo-ws-pipeline",
"echo-ws-limited",
"gateway-64",
"gateway-h3"
"gateway-h3",
"production-stack"
],
"maintainers": [
"jbr"
Expand Down
16 changes: 8 additions & 8 deletions site/data/frameworks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2748,14 +2748,6 @@
"type": "engine",
"engine": "veb"
},
"veil": {
"dir": "veil",
"description": "veil 0.10 reverse proxy from its published container image (full-container build: epoll readiness reactor, no tokio), one process with four listeners. A Proxy-Wasm module loaded into veil answers /baseline11 (including the POST body), /baseline2, /pipeline and /json/{count}, serializing the JSON body per request from the dataset veil loads at startup; /static/* is veil's File backend (sendfile, on-the-fly compression on every protocol, caches that follow the disk). TLS via rustls: HTTP/1.1 on :8081, h2 and h3 (quiche) on :8443, h2c on :8082.",
"repo": "https://github.com/aofusa/veil-proxy",
"type": "infrastructure",
"engine": "veil",
"website": "https://github.com/aofusa/veil-proxy"
},
"veil-api": {
"dir": "veil-api",
"description": "veil 0.10 API library (crates.io veil-proxy, full-container: epoll readiness reactor, no tokio or hyper). #[veil::route] handlers with path/query extraction, serde_json responses, compression through [api] compression, WebSocket through WebSocketUpgrade, gRPC services generated by veil-build (prost), /static/* through App::serve_dir. One process with four listeners from the configuration file; HTTP/3 via quiche.",
Expand Down Expand Up @@ -2783,6 +2775,14 @@
"middleware": false
}
},
"veil": {
"dir": "veil",
"description": "veil 0.10 reverse proxy from its published container image (full-container build: epoll readiness reactor, no tokio), one process with four listeners. A Proxy-Wasm module loaded into veil answers /baseline11 (including the POST body), /baseline2, /pipeline and /json/{count}, serializing the JSON body per request from the dataset veil loads at startup; /static/* is veil's File backend (sendfile, on-the-fly compression on every protocol, caches that follow the disk). TLS via rustls: HTTP/1.1 on :8081, h2 and h3 (quiche) on :8443, h2c on :8082.",
"repo": "https://github.com/aofusa/veil-proxy",
"type": "infrastructure",
"engine": "veil",
"website": "https://github.com/aofusa/veil-proxy"
},
"velocity": {
"dir": "velocity",
"description": "Velocity, a lightweight Express.js alternative on node:http with the cluster module for multi-core scaling.",
Expand Down
Loading