Logging
Edge outputs structured logs to stdout:Log Levels
Configure the log level in your config file or via environment variable:TERO_LOG_LEVEL:
| Level | Description |
|---|---|
trace | Most verbose, includes all details |
debug | Debugging information |
info | Normal operation messages |
warn | Warning conditions |
err | Error conditions only |
Health Checks
Edge exposes a health endpoint for load balancer and orchestrator integration:200 OK when Edge is healthy and ready to process requests.
Kubernetes Probes
Edge starts instantly, so probes can begin immediately:Graceful Shutdown
Edge handles SIGINT and SIGTERM for graceful shutdown:- Stops accepting new connections
- Waits for in-flight requests to complete
- Exits cleanly
Kubernetes Termination
Edge shuts down instantly after draining in-flight requests. A short grace period is sufficient:Resource Requirements
Recommended minimums:| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 0.5 core | 1+ cores |
| Memory | 10MB | 100MB |
| Disk | 10MB | 100MB (for logs) |
Memory Scaling
Memory usage scales with:- Number of policies — Each policy consumes memory for its compiled matchers
- Regex complexity — Hyperscan databases for complex patterns
- Request body sizes — Buffered during processing