Deployments
A Deployment is the execution of a Solution, Sequence, or Action on one or more target machines. Deployments are the mechanism that turns your automation definitions into real-world changes.
What is a Deployment?
Section titled “What is a Deployment?”When you trigger a deployment, Mantis:
- Resolves the solution/sequence/action to specific versions
- Identifies target machines based on your selection
- Creates an execution plan with ordered steps
- Executes steps on each target
- Monitors progress and collects logs
- Reports success or failure
Deployment States
Section titled “Deployment States”Deployments progress through a state machine:
| State | Description |
|---|---|
| Pending | Deployment created, awaiting processing |
| Queued | In the dispatch queue |
| Running | Actively executing on targets |
| Success | All steps finished successfully |
| Failed | One or more steps failed |
| Cancelled | User cancelled the deployment |
| RollingBack | Automatic rollback in progress |
| RolledBack | Successfully rolled back after failure |
Deployment Types
Section titled “Deployment Types”Standard Deployment
Section titled “Standard Deployment”Regular deployment of a solution, sequence, or action.
Promotion
Section titled “Promotion”Moving a solution from one environment to the next:
- Development -> Test
- Test -> Staging
- Staging -> Production
Rollback
Section titled “Rollback”Reverting to a previous version:
- Standard Rollback - Deploy a specific previous version
- Point-in-Time Rollback - Restore to a specific timestamp
Creating a Deployment
Section titled “Creating a Deployment”Step 1: Select What to Deploy
Section titled “Step 1: Select What to Deploy”Choose from three sources:
| Source | Use Case |
|---|---|
| Solution | Complete application deployment |
| Sequence | Specific workflow (e.g., just database migration) |
| Action | Single operation (e.g., restart a service) |
Step 2: Select Targets
Section titled “Step 2: Select Targets”Choose targets by:
| Method | Description |
|---|---|
| Tags | Targets matching specific tags |
| Individual | Specific target machines |
Step 3: Configure Execution
Section titled “Step 3: Configure Execution”| Option | Description | Default |
|---|---|---|
| Execution Mode | How to run across targets | Sequential |
| Failure Strategy | What to do when a step fails | Stop on first failure |
| Priority | Deployment queue priority | 0 (normal) |
| Timeout | Maximum time per step | 300 seconds |
| Max Retries | Retry count for failed steps | 3 |
Step 4: Review and Deploy
Section titled “Step 4: Review and Deploy”- Review the deployment summary
- Verify target selection
- Click Deploy
Execution Modes
Section titled “Execution Modes”Parallel
Section titled “Parallel”Execute on all targets simultaneously. Best for:
- Independent targets
- Fast deployments
- Stateless services
Sequential
Section titled “Sequential”Execute on one target at a time. Best for:
- Stateful services
- Database servers
- Ordered updates
Rolling
Section titled “Rolling”Execute in batches. Best for:
- Large deployments
- Maintaining availability
- Gradual rollouts
Rolling Configuration:
- Batch Size - Number of targets per batch
- Example: 10 targets with batch size 3 = 4 batches
Failure Strategies
Section titled “Failure Strategies”| Strategy | Behavior |
|---|---|
| Stop on First Failure | Halt deployment on any failure |
| Continue on Failure | Move to next target, continue other targets |
| Ignore Failures | Complete all steps regardless of failures |
Rollback Strategies
Section titled “Rollback Strategies”Configure automatic rollback behavior:
| Strategy | Behavior |
|---|---|
| None | No automatic rollback |
| Failed Target Only | Rollback only the failed target |
| All Executed | Rollback all targets that received changes |
Monitoring Deployments
Section titled “Monitoring Deployments”Real-Time Progress
Section titled “Real-Time Progress”The deployment detail page shows:
- Overall Progress - Percentage complete
- Step Counts - Total, completed, failed
- Duration - Elapsed time
- Per-Target Status - Each target’s current state
Log Streaming
Section titled “Log Streaming”View logs in real-time:
- Click on a deployment
- Expand a target row
- View stdout/stderr output as it streams
Step Details
Section titled “Step Details”Each execution step shows:
| Field | Description |
|---|---|
| State | Pending, Queued, Running, Completed, Failed, Skipped, Cancelled |
| Exit Code | Process exit code (0 = success) |
| Duration | Execution time |
| Output | stdout and stderr |
| Error | Error message if failed |
Cancelling Deployments
Section titled “Cancelling Deployments”To cancel a running deployment:
- Navigate to the deployment detail page
- Click Cancel
- Confirm cancellation
When cancelled:
- Running steps complete (not killed)
- Queued steps are skipped
- State changes to “Cancelled”
Deployment Freezes
Section titled “Deployment Freezes”Administrators can create deployment freezes to prevent deployments during:
- Maintenance windows
- Holiday periods
- Critical business events
If a freeze is active:
- Standard deployments are blocked
- Administrators can override with a reason
- Override is logged for audit
Deployment History
Section titled “Deployment History”All deployments are recorded with:
- Who triggered the deployment
- What was deployed (version, targets)
- When it ran
- How it completed (success, failure, cancelled)
- Complete execution logs
Access history from:
- Deployments page - All deployments
- Solution page - Deployments for that solution
- Target page - Deployments to that target
Best Practices
Section titled “Best Practices”Pre-Deployment Verification
Section titled “Pre-Deployment Verification”Before deploying to production:
- Deploy to lower environments first
- Verify functionality in each environment
- Monitor for issues during soak time
- Get required approvals
Monitoring During Deployment
Section titled “Monitoring During Deployment”Watch for:
- Unusual execution times
- Unexpected failures
- Resource utilization spikes
- Application health degradation
Post-Deployment Actions
Section titled “Post-Deployment Actions”After deployment:
- Verify application health
- Check error rates in monitoring
- Review deployment logs
- Document any issues encountered
Next Steps
Section titled “Next Steps”- Creating Deployments - Step-by-step guide
- Target Selection - Choosing targets
- Execution Modes - Parallel vs sequential
- Monitoring - Real-time observation
- Troubleshooting - Common issues
