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
- Deployment Methods Overview - Choose your method
- Binary Installation - Precompiled binaries (5 min)
- Docker Deployment - Container setup (10 min)
- systemd Service - Linux service (15 min)
- Kubernetes - Enterprise deployment (30 min)
2. Networking & Load Balancing
Production networking setup for reliability
- Networking Hub - Architecture overview
- Nginx Reverse Proxy - SSL/TLS and load balancing
- High Availability - Multi-instance failover and disaster recovery
3. Core Operations
Ongoing operational tasks
- Monitoring - Metrics, logging, and alerting
- Security - Hardening and policies
- Troubleshooting - Error resolution
4. Advanced Topics
Optimization and migration
- Advanced Operations Hub - Performance and upgrades
- Migration & Upgrades - Version upgrades and deployment migration
- Performance Tuning - Throughput optimization
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
| Aspect | Binary | Docker | systemd | Kubernetes |
|---|---|---|---|---|
| Setup Time | 5 min | 10 min | 15 min | 30+ min |
| Complexity | Low | Low | Medium | High |
| Scalability | Single host | Multi-container | Single host | Unlimited |
| HA Support | Manual | Via compose | Manual | Built-in |
| Cost | Infrastructure only | Infrastructure + resources | Infrastructure | Infrastructure + complexity |
| Best For | Testing | Dev/CI-CD | Production (single) | Enterprise |
Implementation Path
1. Choose Deployment
2. Initial Setup
→ Follow specific deployment guide
3. Production Hardening
→ Security
4. Setup Monitoring
5. Optimize Performance
6. Setup HA (if needed)
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
Monitoring Health
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
Related Documentation
- Getting Started - Initial setup
- CLI Commands - Command reference
- Configuration - Config options
- Webhooks - Integration setup
Next Steps
- Choose your deployment method
- Follow implementation guide
- Setup monitoring
- Optimize for your workload
- Keep systems updated and secure
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Security: Report privately via security policy