Week 7: Capacity Planning & Disaster Recovery

Theme: Load testing, right-sizing, DR strategies.

Learning Objectives

  1. Run load tests with k6 (script-based) and hey (ad-hoc)
  2. Analyze results to determine capacity limits
  3. Design a disaster recovery plan with RTO/RPO targets
  4. Implement backup/restore for a stateful service

Reading Materials

Finger Exercises (choose 2)

  1. Install k6. Write a test script that hits the Go app's /api/users endpoint with 100 concurrent VUs for 2 minutes. Analyze p50/p95/p99 latency.
  2. Use hey for ad-hoc load testing: hey -n 10000 -c 50 http://localhost:8080/api/orders. Compare results with k6.
  3. Install Velero and take a backup of a test namespace. Delete and restore the namespace.

Project

Time Budget

ActivityTime
Reading1.5 hrs
Finger exercises2 hrs
Project2.5 hrs
Total6 hrs