Operations Hub

Production deployment, operations, and infrastructure

Operations & Infrastructure

Comprehensive guide for deploying, configuring, and operating Cadence in production environments.

Core Topics

1. Deployment Methods

Choose and implement the right deployment method

2. Networking & Load Balancing

Production networking setup for reliability

3. Core Operations

Ongoing operational tasks

4. Advanced Topics

Optimization and migration

Quick Decision Tree

What's your current situation?

├─ Just starting?
│  └─ [Deployment Methods](/docs/reference/operations/deployment-methods) →
│     Choose: Binary, Docker, systemd, or Kubernetes
│
├─ Already deployed?
│  ├─ Seeing issues?
│  │  └─ [Troubleshooting](/docs/reference/operations/troubleshooting)
│  ├─ Need monitoring?
│  │  └─ [Monitoring](/docs/reference/operations/monitoring)
│  └─ Under load?
│     └─ [Performance Tuning](/docs/reference/operations/advanced/performance)
│
├─ Need to upgrade?
│  └─ [Migration & Upgrades](/docs/reference/operations/advanced/migration)
│
├─ Need high availability?
│  └─ [High Availability](/docs/reference/operations/networking/ha)
│
└─ Need to harden security?
   └─ [Security](/docs/reference/operations/security)

Deployment Comparison

AspectBinaryDockersystemdKubernetes
Setup Time5 min10 min15 min30+ min
ComplexityLowLowMediumHigh
ScalabilitySingle hostMulti-containerSingle hostUnlimited
HA SupportManualVia composeManualBuilt-in
CostInfrastructure onlyInfrastructure + resourcesInfrastructureInfrastructure + complexity
Best ForTestingDev/CI-CDProduction (single)Enterprise

Implementation Path

1. Choose Deployment

→ Deployment Methods

2. Initial Setup

→ Follow specific deployment guide

3. Production Hardening

→ Security

4. Setup Monitoring

→ Monitoring

5. Optimize Performance

→ Performance Tuning

6. Setup HA (if needed)

→ High Availability

Configuration Reference

Environment Variables

Core variables for all deployments:

Bash
# AI Configuration
CADENCE_AI_PROVIDER=anthropic  # or "openai"
CADENCE_AI_KEY=sk-ant-xxx      # Your API key
CADENCE_AI_BASE_URL=https://api.anthropic.com/v1

# Webhook Server
CADENCE_WEBHOOK_PORT=8000
CADENCE_WEBHOOK_SECRET=your-secret-key
CADENCE_WEBHOOK_MAX_WORKERS=8

# Logging
LOG_LEVEL=info  # debug, info, warn, error

# Detection Thresholds
CADENCE_THRESHOLDS_SUSPICIOUS_ADDITIONS=500
CADENCE_THRESHOLDS_MAX_ADDITIONS_PER_MIN=100

See Configuration for complete reference.

Debugging & Support

Troubleshooting

→ Troubleshooting Guide

Monitoring Health

→ Monitoring Guide

Logs

Bash
# View recent logs
sudo journalctl -u cadence -n 50

# Follow logs in real-time
sudo journalctl -u cadence -f

# Enable debug logging
LOG_LEVEL=debug systemctl restart cadence

Health Check

Bash
curl http://localhost:8000/health

Next Steps

  1. Choose your deployment method
  2. Follow implementation guide
  3. Setup monitoring
  4. Optimize for your workload
  5. Keep systems updated and secure

Support