Skip to content

Latest commit

 

History

History
184 lines (137 loc) · 6.7 KB

File metadata and controls

184 lines (137 loc) · 6.7 KB

Production Operations Documentation

This directory contains comprehensive operational documentation for running ThemisDB in production environments.

📋 Core Documentation

Deployment & Configuration

Security & Posture

  • SECURITY_POSTURE.md - Security defaults, unsafe modes, and hardening guide (integrators start here)
  • SECURITY.md - Security hardening (GPU, TLS, audit logging, HSM, key rotation)

Operational Procedures

Disaster Recovery

Monitoring & Performance

Security & Troubleshooting

✅ Checklists

Pre-planned checklists for common operational scenarios:

🎯 Service Level Objectives (SLOs)

Availability Target: 99.9%

  • Maximum Downtime: 43 minutes per month
  • MTTD: < 2 minutes (Mean Time To Detect)
  • MTTR: < 30 minutes (Mean Time To Recover)

Performance Targets

  • P95 Latency: < 200ms
  • P99 Latency: < 500ms
  • Error Rate: < 0.1%

Recovery Objectives

Scenario RTO RPO
Single Node Failure 5 min 0 sec
Data Center Outage 30 min 5 sec
Regional Disaster 2 hours 1 min
Complete Data Loss 4 hours 15 min
Ransomware Attack 6 hours 1 hour

🚀 Quick Start Examples

Deploy with Auto-Scaling (Kubernetes)

helm install themisdb ./helm/themisdb \
  --namespace production \
  --set autoscaling.enabled=true \
  --set autoscaling.minReplicas=3 \
  --set autoscaling.maxReplicas=10 \
  --set autoscaling.targetCPUUtilizationPercentage=75

Enable SLA Monitoring

# Deploy SLA monitoring dashboard
kubectl apply -f ../../grafana/dashboards/sla-monitoring.json

# Apply SLA alerting rules
kubectl apply -f ../../prometheus/rules/sla-rules.yml

Run Compliance Check

# Monthly operational compliance check
./operational-compliance-check.sh

Execute DR Drill

# Quarterly disaster recovery test
themisdb-cli test dr-drill --scenario datacenter-failure

📊 Monitoring Dashboards

Located in ../../grafana/dashboards/:

  • sla-monitoring.json - SLA compliance, availability, error budgets

🔔 Alerting Rules

Located in ../../prometheus/rules/:

  • sla-rules.yml - SLA breach detection, error budget monitoring

📦 Example Configurations

Located in examples/:

  • k8s_production_values.yaml - Production Helm values with TLS, env vars, probes, and autoscaling
  • single_gpu_setup.yaml - Single GPU development/testing configuration
  • multi_gpu_setup.yaml - Multi-GPU production configuration
  • distributed_training.yaml - Distributed training setup
  • raid_configuration.yaml - High-availability storage configuration

🔐 Security Resources

🔄 Operational Workflows

Standard Deployment Workflow

  1. Review Pre-Deployment Checklist
  2. Follow Deployment Guide
  3. Configure Load Balancer
  4. Set up Monitoring
  5. Complete Post-Deployment Checklist

Upgrade Workflow

  1. Review Upgrade Runbook
  2. Create full backup
  3. Test in staging
  4. Execute rolling/blue-green/canary upgrade
  5. Validate and monitor

Incident Response Workflow

  1. Follow Incident Response Checklist
  2. Consult Troubleshooting Guide
  3. Execute appropriate runbook (Failover/Restore)
  4. Document and conduct post-incident review

Monthly Operations Review

  1. Complete Operational Compliance Checklist
  2. Review SLA metrics and error budgets
  3. Conduct capacity planning
  4. Update documentation as needed

📞 Emergency Contacts

  • On-Call Engineer: [PagerDuty / Phone]
  • Operations Lead: [Email / Phone]
  • Engineering Manager: [Email / Phone]
  • CTO: [Email / Phone]

📚 Additional Resources

🔐 Document Classification

Classification: Internal - Operations
Audience: Operations Teams, SREs, DevOps Engineers
Review Cycle: Quarterly
Version: 1.0
Last Updated: 2026-04-06


For questions or feedback, please: