Deployment Documentation - Agent Guide¶
Purpose¶
This directory contains documentation for container orchestration, startup sequences, health monitoring, and recovery procedures for the Home Security Intelligence system.
Files¶
| File | Purpose |
|---|---|
container-orchestration.md | Comprehensive container orchestrator documentation |
yolo26-migration.md | YOLO26 detector migration guide and configuration |
Key Topics¶
YOLO26 Migration¶
The yolo26-migration.md file covers:
- Overview - YOLO26 architecture and migration benefits (5.3x faster)
- Prerequisites - Hardware, software, and model file requirements
- Configuration - Environment variables and model selection
- Migration Steps - Step-by-step deployment instructions
- Rollback Procedure - How to revert to YOLO26
- Performance - Benchmark results and latency comparisons
- Monitoring - Prometheus metrics and Grafana integration
- Troubleshooting - Common issues and solutions
Container Orchestration¶
The container-orchestration.md file covers:
- Architecture - Component interaction and data flow
- Startup Sequence - Four-phase startup with dependencies
- Health Checks - HTTP endpoints, commands, and fallbacks
- Dependency Graph - Service dependencies and startup order
- Self-Healing Recovery - Exponential backoff and auto-restart
- Service Categories - Infrastructure, AI, and Monitoring services
- Configuration - Environment variables and port settings
- API Endpoints - Health and service management APIs
- Recovery Procedures - Common failure scenarios and solutions
- Troubleshooting - Diagnostic commands and issue resolution
Related Backend Services¶
| Service | File | Purpose |
|---|---|---|
| ContainerOrchestrator | backend/services/container_orchestrator.py | Main coordinator |
| ContainerDiscoveryService | backend/services/container_discovery.py | Container discovery |
| HealthMonitor | backend/services/health_monitor_orchestrator.py | Health check loop |
| LifecycleManager | backend/services/lifecycle_manager.py | Restart logic |
| ServiceRegistry | backend/services/orchestrator/registry.py | State management |
| DockerClient | backend/core/docker_client.py | Docker API wrapper |
Related Documentation¶
- Deployment Guide - Full deployment instructions
- Monitoring Guide - Observability setup
- AI Services - AI service configuration
- Service Control - Manual service management
Quick Reference¶
Health Endpoints¶
# Backend readiness
curl http://localhost:8000/api/system/health/ready
# AI services health
curl http://localhost:8000/api/health/ai-services
# Individual service health
curl http://localhost:8095/health # ai-yolo26 (YOLO26)
curl http://localhost:8091/health # ai-llm
Service Management¶
# List all services
curl http://localhost:8000/api/system/services
# Restart a service
curl -X POST http://localhost:8000/api/system/services/ai-yolo26/restart
# Enable/disable auto-restart
curl -X POST http://localhost:8000/api/system/services/ai-yolo26/enable
curl -X POST http://localhost:8000/api/system/services/ai-yolo26/disable