docs(deploy): add comprehensive blue/green operator runbook (issue #287)#319
Merged
Merged
Conversation
…lenttrust#287) - Document deploy:switch-green, deploy:rollback, deploy:status procedures - Include health-gate behavior (30s timeout, automatic rollback thresholds) - Cross-reference health.ts readiness and shutdown.ts drain timing - Explain blue (3001)/green (3002)/router (3000) topology - Provide troubleshooting guide and decision tree - Include security notes on authentication and credential handling - Add example deployment workflow script - Document environment variables and CLI commands - Include monitoring and alert recommendations Runbook validated against src/deploy.ts implementation and test coverage.
|
@Abolax123 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #287
Blue/Green Deploy Runbook Documentation
Issue
#287: Document blue/green deploy runbook for deploy.ts switch-green and rollback
Summary
This PR adds comprehensive operator documentation for the blue/green deployment flow driven by
src/deploy.tsand the npm run deploy:* scripts. The runbook covers the complete deployment lifecycle including health gating, auto-rollback behavior, and troubleshooting procedures.Changes
New Files
docs/deploy.md(645 lines) — Comprehensive blue/green deployment operator runbookDocumentation Coverage
1. Overview & Topology
2. Quick Start Procedures
npm run deploy:status— Check deployment statenpm run deploy:switch-green— Promote green to activenpm run deploy:rollback— Return to blue3. Health Gate Behavior
GET /health/ready4. Pre-Deployment Checklist
5. Complete Deployment Procedure
6. Status Output Interpretation
activeColor— Currently active instancelastSwitch— Timestamp of last switchblueHealth.healthy/greenHealth.healthy— Instance healthswitchInProgress— Deployment in flight7. Drain & Shutdown
8. Rollback Decision Tree
9. Troubleshooting Guide
10. Monitoring & Alerts
11. Reference
12. Example Workflow
Health Gate Behavior
Security Coverage
Testing
Validation Against src/deploy.ts
.deployment-state.jsonRunbook Procedures Validated
getStatus()return typeDocumentation Quality
Related Documentation
Cross-references to:
docs/health.md— Readiness and liveness probesdocs/shutdown.md— Drain timing and connection cleanupdocs/api-keys.md— Admin authentication for deploy endpointsdocs/observability.md— Metrics and alertingdocs/troubleshooting.md— Common operational issuesUsage
For operators: