Deployment
Vorte applications are designed for containerized deployment. This guide covers Docker, Kubernetes, health probes, Prometheus metrics, and the native Rust engine.
Docker
Generate a Dockerfile
This generates an optimized multi-stage Dockerfile:
Docker Compose
Generates a docker-compose.yml with all required services:
Kubernetes
Generate Manifests
Health Probes
Vorte provides three built-in endpoints for Kubernetes probes. Configure them in your pod spec:
Resource Limits
Prometheus Integration
Vorte exposes a /metrics endpoint in Prometheus text format. Configure Prometheus to scrape it:
Available Metrics
| Metric | Type | Description |
|---|---|---|
vorte_http_requests_total | counter | Total HTTP requests by method, path, status |
vorte_http_request_duration_seconds | histogram | Request latency distribution |
vorte_module_state | gauge | Current state of each module (1=ready) |
vorte_ai_tokens_total | counter | AI token usage by provider and type |
vorte_db_query_duration_seconds | histogram | Database query latency |
vorte_cache_operations_total | counter | Cache hits and misses |
Rust Engine
Vorte includes an optional Rust engine for serialization, routing, and middleware. It is compiled during installation when Rust 1.75+ is available.
The Rust engine provides significant performance improvements for JSON serialization, route matching, and request processing. If Rust is not available, Vorte gracefully falls back to pure Python implementations.
Environment Variables
| Variable | Default | Description |
|---|---|---|
VORTE_ENV | development | Application environment |
VORTE_HOST | 127.0.0.1 | Server bind address |
VORTE_PORT | 8000 | Server bind port |
VORTE_WORKERS | 1 | Number of worker processes |
VORTE_DEBUG | false | Enable debug mode |
VORTE_LOG_LEVEL | info | Logging level |
VORTE_CONFIG_PATH | config.yaml | Configuration file path |
DATABASE_URL | None | Database connection string |
REDIS_URL | None | Redis connection string |
SECRET_KEY | None | Application secret key |
Production Checklist
- Set
VORTE_ENV=production - Set
VORTE_DEBUG=false - Configure
SECRET_KEYwith a strong random value - Set
VORTE_WORKERSto match your CPU cores - Enable the Rust engine for maximum performance
- Configure health probes for liveness and readiness
- Set up Prometheus scraping for the /metrics endpoint
- Disable the dashboard and info endpoints in production
- Use HTTPS with a reverse proxy or load balancer
- Set appropriate resource limits in Kubernetes