Deployment Lifecycle
Understanding the deployment process from plan to production
Blazing Core Compose follows a structured deployment lifecycle: validate → plan → apply → monitor.
Lifecycle Overview
Phase 1: Validate
Local validation of YAML configuration.
Command
What It Checks
- YAML Syntax: Valid YAML structure
- Schema Compliance: Matches Core Compose v0.2.0 schema
- Feature Availability: Requested features are supported
- Policy Requirements: Org-level policies are met
- Control Satisfaction: Compliance controls can be satisfied
Sample Output
Validation Errors
Phase 2: Plan
Preview what will be deployed without actually deploying.
Command
What It Shows
- Provider Selection: Which providers will be used
- Region Allocation: Specific regions to be provisioned
- Resource Summary: CPU, memory, GPU, storage
- Cost Estimate: Monthly cost with variance
- Compliance Status: Controls met/unmet
- Placement Rationale: Why providers were chosen
Sample Output
Plan Options
Phase 3: Apply
Execute the deployment plan.
Command
What It Does
- Server-Side Orchestration: API runs placement algorithm
- Resource Provisioning: Creates compute nodes, IPs, storage
- Network Setup: Configures ingress/egress, TLS certificates
- Service Deployment: Deploys containers across regions
- Health Verification: Waits for readiness probes
- Audit Logging: Records deployment details
Sample Output
Apply Options
Phase 4: Monitor
Track deployed services.
Monitoring Commands
Sample Monitoring
Deployment States
| State | Description | Actions Available | |-------|-------------|-------------------| | draft | YAML loaded but not validated | validate, plan | | validated | Schema checks passed | plan, apply | | planning | Computing placement | wait | | provisioning | Creating infrastructure | wait, cancel | | deploying | Rolling out services | wait, watch | | healthy | All services running | scale, update, destroy | | degraded | Some replicas unhealthy | rollback, investigate | | failed | Deployment failed | retry, rollback |
Atomic Deployments
Blazing uses atomic deployments: all resources succeed or all fail.
Success Path
Failure Path
No partial deployments: Either everything works or nothing changes.
Update Deployments
Modify existing deployments with apply:
Rolling Updates
Updates are rolled out gradually:
Zero-Downtime Updates
Guaranteed zero downtime if:
min_replicas ≥ 2- Health checks configured
- Gradual rollout (default)
Update Example
Rollback
Revert to previous deployment:
Automatic Rollback
Blazing automatically rolls back if:
- Health checks fail
- Deployment timeout exceeded
- Critical error during apply
Deployment Comparison
Compare two deployments:
Sample Diff
Best Practices
1. Always Validate First
2. Review Plans Carefully
Check:
- Cost estimates
- Region selection
- Compliance status
- Resource allocation
3. Use Staged Rollouts
4. Monitor After Deploy
Watch for errors in the first 5-10 minutes.
5. Tag Deployments
Makes rollback easier: