Live App →

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

  1. Generate new secret in AWS Secrets Manager
  2. Update ECS task definition with new ARN
  3. Force new deployment
  4. Verify service health
  5. Delete old secret version

Scale Workers

# Scale Celery workers
aws ecs update-service --cluster sentinel-prod \
  --service nexus-celery-workers --desired-count 10