Skip to content

Comments

Phase 3: Monthly DR Recovery Test#11

Merged
manana2520 merged 2 commits intomainfrom
phase-3-dr-recovery-test
Feb 12, 2026
Merged

Phase 3: Monthly DR Recovery Test#11
manana2520 merged 2 commits intomainfrom
phase-3-dr-recovery-test

Conversation

@manana2520
Copy link
Contributor

Implementation Summary

Monthly automated disaster recovery test that creates a temporary VM from the latest production Neo4j disk snapshot, validates data integrity via HTTP REST API, and reports PASS/FAIL.

Acceptance Criteria

  • neo4j-dr-startup.sh uses device name neo4j-dr-data, container name neo4j-dr
  • neo4j-dr-startup.sh resets auth files before starting Neo4j
  • neo4j-dr-startup.sh has APOC + JVM memory settings
  • dr-recovery-test.sh has trap cleanup EXIT that deletes VM + disk
  • dr-recovery-test.sh creates disk from latest snapshot, creates temp VM in knowledge-base-subnet
  • dr-recovery-test.sh validates via Neo4j HTTP REST API
  • dr-recovery-test.sh checks nodes > 1000, relationships > 5000, entities > 100
  • dr-recovery-test.sh reports PASS/FAIL with all counts
  • dr-recovery-test.sh exits 0 on PASS, 1 on FAIL
  • backup.tf has google_cloud_run_v2_job.dr_recovery_test WITH vpc_access block
  • backup.tf has google_cloud_scheduler_job.dr_recovery_test at 0 4 1 * *
  • terraform validate passes

Tests

  • bash -n syntax checks pass for both scripts
  • terraform validate passes

Files Changed

  • deploy/terraform/scripts/neo4j-dr-startup.sh -- NEW
  • deploy/scripts/dr-recovery-test.sh -- NEW
  • deploy/terraform/backup.tf -- MODIFIED (appended DR resources)

@manana2520 manana2520 merged commit ccf61e6 into main Feb 12, 2026
1 check passed
@manana2520 manana2520 deleted the phase-3-dr-recovery-test branch February 12, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant