Overview
This guide covers advanced debugging techniques for troubleshooting complex issues with Smallest Self-Host.Debugging Tools
Docker Debugging
Enter Running Container
Debug Failed Container
View logs of crashed container:Network Debugging
Check container networking:Kubernetes Debugging
Debug Pod
Interactive debug container:Ephemeral Debug Container
Add temporary container to running pod:Get Previous Logs
If pod crashed and restarted:Network Debugging
Test Service Connectivity
From inside cluster:DNS Resolution
Check DNS is working:Network Policies
List network policies:Performance Debugging
Resource Usage
Check pod resource consumption:GPU Debugging
Check GPU availability in pod:Application Profiling
Profile Lightning ASR:Log Analysis
Structured Log Parsing
Extract errors from logs:Log Aggregation
Combine logs from all replicas:Parse JSON Logs
Usingjq:
Database Debugging
Redis Debugging
Connect to Redis:API Debugging
Test API Endpoints
Health check:Request Tracing
Add request ID tracking:Packet Capture
Capture network traffic:Event Debugging
Watch Events
Real-time events:Event Analysis
Count events by reason:Metrics Debugging
Check Prometheus Metrics
Port forward Prometheus:Check Custom Metrics
Verify metrics available to HPA:Debugging Checklists
Startup Issues Checklist
1
Check Image Pull
2
Verify Secrets
3
Check Resources
4
Review Logs
Performance Issues Checklist
1
Check Resource Usage
2
Verify GPU
3
Check HPA
4
Review Metrics
Advanced Techniques
Enable Debug Logging
Increase log verbosity:Simulate Failures
Test error handling:Load Testing
Generate load:Chaos Engineering
Test resilience (requires Chaos Mesh):What’s Next?
Logs Analysis
Learn to interpret logs and errors
Common Issues
Quick fixes for frequent problems

