Hosted vs. Self-Hosted
This page covers self-hosted deployments, where you run Runlayer on your own infrastructure via Terraform or Helm. On Runlayer-hosted deployments, Runlayer operates the infrastructure and applies updates for you — no action is required on your side. Release notes for every version are published in the changelog; for hosted update timing and policies, contact support@runlayer.com.
Update Process
Runlayer updates are manual and controlled through Terraform. There is no automated update system - you have full control over when and how updates are applied.How Updates Work
Container Images
Runlayer uses automated semantic versioning with multiple tag options:latest: Always points to the most recent releasev1.2.3: Semantic version tags for stable deployments20241213-152430: Timestamp-based tags for specific buildsv1.2.3-20241213-152430-a1b2c3d4: Full build traceability (includes commit SHA)
Update Methods
- Rolling Updates (Recommended)
- Forced Updates
Standard update process with zero downtime:What happens:
- ECS pulls latest container images from ECR
- Rolling deployment replaces containers one by one
- Health checks ensure new containers are healthy before removing old ones
- Zero downtime for users
Version Management Strategies
Automated Versioning System
Runlayer uses automated semantic versioning based on conventional commits:How versions are determined:
- Patch bump (
v1.2.3→v1.2.4): Bug fixes, documentation updates - Minor bump (
v1.2.3→v1.3.0): New features (feat:commits) - Major bump (
v1.2.3→v2.0.0): Breaking changes (feat!:orBREAKING CHANGE:)
Deployment Strategies
Option 1: Use Latest (Auto-Updates)
Option 1: Use Latest (Auto-Updates)
Always get the newest version:Benefits:
- Automatic security patches
- Latest features and improvements
- Minimal maintenance overhead
- Updates happen when you run
terraform apply - May include breaking changes in major versions
Option 2: Pin to Semantic Versions
Option 2: Pin to Semantic Versions
Use stable version tags for production:Benefits:
- Predictable deployments
- Control over when breaking changes are applied
- Easy rollbacks by changing version tags
Option 3: Staged Update Strategy
Option 3: Staged Update Strategy
Test versions before production deployment:Workflow:
- New version deploys to staging automatically
- Test thoroughly in staging environment
- Update production to use tested version tag
- Rollback easily if issues arise
Finding Available Versions
- AWS CLI
- GitHub Releases
List all available versions:
Update Monitoring
Health Checks During Updates
The ECS service configuration includes automatic health monitoring:Rollback Procedures
Version Rollback (Recommended)
Rollback to a previous semantic version:Benefits:
- Clean rollback to known stable version
- Maintains deployment history
- Easy to communicate to team
Database Migrations
Database updates require special handling:Manual Migration Process
Migration Safety
- Automated backups: Aurora automatically backs up every 7 days (configurable)
- Point-in-time recovery: Can restore to any point within backup retention period
- Cluster snapshots: Manual snapshots before major updates
Security Updates
Critical Security Patches
Best Practices
Before Updates
- Review release notes and breaking changes
- Backup database with manual snapshot
- Test in staging environment first
- Schedule during low-traffic periods
- Have rollback plan ready
During Updates
- Monitor health check endpoints
- Watch ECS service status
- Check application logs for errors
- Verify target group health
- Test critical functionality
After Updates
- Verify all services are healthy
- Test key user workflows
- Monitor error rates and performance
- Clean up old task definitions
- Document any issues encountered
Emergency Procedures
- Know how to quickly rollback
- Have monitoring dashboards ready
- Keep communication channels open
- Document incident response steps
- Practice rollback procedures
Troubleshooting Updates
Service Won't Start After Update
Service Won't Start After Update
Common causes and solutions:
Deployment Stuck or Slow
Deployment Stuck or Slow
ECS deployment issues:
Database Connection Issues
Database Connection Issues
Database connectivity problems: