Phase 6 — Staging Validation & Production Cutover #111
Labels
No labels
architecture
backend
bug
ci
config
database
docker
documentation
duplicate
enhancement
frontend
help wanted
invalid
issue-25
issue-26
issue-42
issue-65
issue-67
issue-82
migrations
p0-critical
p1-high
p2-medium
p3-low
performance
quality
question
security
state-management
testing
timezone
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
fastie81/honbu-manager#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue: Phase 6 — Staging Validation & Production Cutover
Type: Operations / Deployment
Priority: High
Epic: Epic: Database-per-Club Multi-Tenancy Split & Data Migration
Status: Backlog
1. Context & Purpose
With code infrastructure, migrations, repositories, backups, and migration scripts tested and ready, we need to deploy the changes to staging for validation, and execute the final production cutover within a scheduled maintenance window.
2. Technical Specification & Checklist
2.1. Staging Deploy & Validation
pyteston staging to ensure zero regression.2.2. Production Cutover Protocol
A scheduled maintenance window must be announced to users. The steps are:
SELECT * FROM pg_stat_activity WHERE state != 'idle';pg_dump -h <host> -U postgres -d honbu_manager -Fc > pre_split_monolith.dumppython scripts/etl_migrate.py --source $SOURCE_DATABASE_URL --central $CENTRAL_DATABASE_URLpython scripts/etl_migrate.py --verify-only --source $SOURCE_DATABASE_URL --central $CENTRAL_DATABASE_URLDATABASE_URLto point to the new Central database URI (honbu_central).2.3. Post-Migration Monitoring
3. Rollback Protocol
If E2E smoke tests fail or critical data errors are reported post-migration, execute these rollback steps:
DATABASE_URLenvironment variable back to the monolithic database connection string.Part of Epic #105