Operations
This section covers the operational aspects of running Rack Gateway in production, including monitoring, maintenance, upgrades, and troubleshooting.
Operational Areas
Section titled “Operational Areas” Monitoring Health checks, metrics, and error tracking with Sentry.
Database Maintenance Migrations, backups, and data management.
Troubleshooting Common issues and how to resolve them.
Upgrades Upgrading Rack Gateway to new versions.
Quick Reference
Section titled “Quick Reference”Health Endpoints
Section titled “Health Endpoints”| Endpoint | Purpose | Expected Response |
|---|---|---|
/api/v1/health | Liveness check | {"status": "ok"} |
/api/v1/health/ready | Readiness check | {"status": "ready", "database": "connected"} |
Common Commands
Section titled “Common Commands”# Check gateway healthcurl https://gateway.example.com/api/v1/health
# View recent audit logs (admin)rack-gateway admin audit list --limit 50
# Check database connectivityrack-gateway migrate --dry-runLog Locations
Section titled “Log Locations”| Deployment | Log Location |
|---|---|
| Docker | docker logs rack-gateway |
| Convox | convox logs -a rack-gateway |
| Kubernetes | kubectl logs -l app=rack-gateway |
Operational Runbooks
Section titled “Operational Runbooks”Daily Checks
Section titled “Daily Checks”- Verify health endpoints respond correctly
- Check error tracking (Sentry) for new issues
- Review audit logs for unusual activity
Weekly Tasks
Section titled “Weekly Tasks”- Review user access patterns
- Check for unused API tokens
- Verify backup integrity
Monthly Tasks
Section titled “Monthly Tasks”- Rotate API tokens as needed
- Review RBAC role assignments
- Check for available updates
Emergency Procedures
Section titled “Emergency Procedures”Gateway Unreachable
Section titled “Gateway Unreachable”- Check health endpoints
- Verify database connectivity
- Check container/pod status
- Review recent deployments or changes
Suspected Security Incident
Section titled “Suspected Security Incident”- Do not modify audit logs
- Check audit log for suspicious activity
- Review active sessions and API tokens
- Contact security team
- Preserve evidence for forensics
Database Issues
Section titled “Database Issues”- Check database connectivity from gateway
- Verify database is accepting connections
- Check for blocking queries or locks
- Review recent migrations
See Troubleshooting for detailed procedures.