Skip to main content
This guide covers deploying Enclave to production environments, including configuration, monitoring, and operational best practices.

Deployment Architecture

Single-Server Deployment

For smaller workloads:

Distributed Deployment

For production scale:

Pre-Deployment Checklist

Security

  • Set securityLevel: 'STRICT' for untrusted code
  • Enable AI Scoring Gate
  • Configure memory limits
  • Set appropriate timeouts
  • Enable input validation
  • Review tool permissions

Performance

  • Configure worker pool for CPU-bound loads
  • Set up Redis for distributed sessions
  • Configure connection pooling
  • Enable response compression
  • Set up CDN for static assets

Monitoring

  • Configure logging
  • Set up metrics collection
  • Configure alerting
  • Enable tracing
  • Set up error tracking

Infrastructure

  • Configure auto-scaling
  • Set up health checks
  • Configure load balancer
  • Set up SSL/TLS
  • Configure DNS

Configuration

Environment Variables

Production Configuration

Docker Deployment

Dockerfile

Docker Compose

Kubernetes Deployment

Deployment Manifest

Service and Ingress

Monitoring

Health Endpoints

Metrics

Structured Logging

Error Handling

Global Error Handler

Graceful Shutdown

Security Hardening

Rate Limiting

Request Validation

Performance Tuning

Connection Pooling

Deployment Platforms

Vercel

Railway

Render