Skip to main content
Operations covers the production behaviors you need to run Edge: logs, health checks, graceful shutdown, and resource sizing.

Logging

Edge outputs structured logs to stdout:

Log Levels

Configure the log level in your config file or via environment variable:
Or override with TERO_LOG_LEVEL:

Health Checks

Edge exposes a health endpoint for load balancer and orchestrator integration:
Returns 200 OK when Edge is healthy and ready to process requests.

Kubernetes Probes

Probes can begin as soon as the process starts:

Metrics

Edge serves its own operational metrics in Prometheus format:
Point a Prometheus scrape at this endpoint to monitor Edge itself (request counts, request durations, policy batch stats, build info). This is separate from any /metrics traffic Edge filters and forwards to your upstream.

Graceful Shutdown

Edge handles SIGINT and SIGTERM for graceful shutdown:
  1. Stops accepting new connections
  2. Waits for in-flight requests to complete
  3. Exits cleanly
This shutdown sequence lets Edge finish accepted requests before the process exits during deployments and scaling events.

Kubernetes Termination

Edge exits as soon as in-flight requests drain. A short grace period is sufficient:

Resource Requirements

Recommended minimums:

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

Kubernetes Resources

Next Steps

Configuration

Full configuration reference

Architecture

Understand Edge internals