Developers
Runbooks
Common operational procedures for platform management.
Runbooks
Step-by-step procedures for common operational tasks.
Restart a Service
# Identify the ECS service
aws ecs list-services --cluster sentinel-prod
# Force new deployment
aws ecs update-service --cluster sentinel-prod \
--service nexus-backend --force-new-deployment
# Verify
aws ecs describe-services --cluster sentinel-prod \
--services nexus-backend --query 'services[0].deployments'
Clear Redis Cache
# Connect to Redis
redis-cli -h $REDIS_HOST -p 6379
# Flush tenant cache
FLUSHDB
# Or flush specific keys
DEL "cache:tenant:abc:*"
Rotate Secrets
- Generate new secret in AWS Secrets Manager
- Update ECS task definition with new ARN
- Force new deployment
- Verify service health
- Delete old secret version
Scale Workers
# Scale Celery workers
aws ecs update-service --cluster sentinel-prod \
--service nexus-celery-workers --desired-count 10