← All Learning Paths

Database Reliability Engineer

Keep databases available and recoverable: replication mechanics, failover and split-brain, backup and restore drills, RPO/RTO targets, and durability.

roleadvanced6 nodes14.5h total

Path overview

保障数据库可用与可恢复:复制机制、故障切换与脑裂、备份恢复演练、RPO/RTO 目标与持久性。

Keep databases available and recoverable: replication mechanics, failover and split-brain, backup and restore drills, RPO/RTO targets, and durability.

  1. Use "Backup and Restore Drill" to decide "Select a representative backup: Choose a recent backup and an older one from within the", then prove the outcome with "The chosen backup is within the documented retention and can be retrieved.".

    Completion criteria: Produce a run log for "Backup and Restore Drill" that ends at "The chosen backup is within the documented retention and can be retrieved." and mark every step where "Select a representative backup: Choose a recent backup and an older one from within the" was checked.

    Next step: Run a Database Failover Drill

    ⏱ 1.5h

  2. Follow "Run a Database Failover Drill" and record "Prove that the team can fail over the primary database within the recovery time objective" at the step where it should appear, using "The baseline is stored and the replica is caught up within the acceptable lag." as the check.

    Prerequisites: Backup and Restore Drill

    Completion criteria: Deliver a transcript of "Run a Database Failover Drill" with each step's command and observed state, ending at "Prove that the team can fail over the primary database within the recovery time objective".

    Next step: Verify Database Backups by Restoring Them

    ⏱ 1.5h

  3. Apply "Verify Database Backups by Restoring Them" to a database reliability engineer task, checking that "pg_restore completes without errors and the scratch database contains the expected schemas." appears after the "Create a fresh custom-format dump and record its checksum." step.

    Prerequisites: Run a Database Failover Drill

    Completion criteria: Deliver a transcript of "Verify Database Backups by Restoring Them" with each step's command and observed state, ending at "Create a fresh custom-format dump and record its checksum.".

    Next step: Run a Quarterly Restore Drill

    ⏱ 1h

  4. Execute "Run a Quarterly Restore Drill" end to end, then repeat the last step with one parameter changed and compare "Prove backups are restorable and measure recovery time before an incident forces the".

    Prerequisites: Verify Database Backups by Restoring Them

    Completion criteria: Run "Run a Quarterly Restore Drill" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Own Keys on a Consistent Hash Ring

    ⏱ 1h

  5. Build "Own Keys on a Consistent Hash Ring" for database reliability engineer code and verify {owners:[{key:k1,node:a},{key:k2,node:a},{key:k3,node:a}],load:[{node: against both samples.

    Completion criteria: Attach the solution file for "Database Reliability Engineer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Database Reliability Engineer

    ⏱ 0.5h

  6. Deliver the "Build a WAL Replication Manager" blueprint with "Follower shipper" working and "Checkpoint store" recorded as evidence.

    Prerequisites: Own Keys on a Consistent Hash Ring

    Completion criteria: Run the project's test command for "Build a WAL Replication Manager", paste the passing output, and attach the acceptance note for "Follower shipper" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h