Week 7 Worklog

Objectives of Week 7

  • Optimize system performance based on real usage data.
  • Implement auto-scaling for dynamic workload handling.
  • Analyze and reduce operational costs.

Tasks Completed During the Week

DayTaskStart DateEnd DateReferences
1- Analyze system resource usage
  + Monitor CPU and memory metrics of ECS
  + Evaluate real usage patterns
20/04/202620/04/2026ECS CloudWatch Metrics, Compute Optimizer Guide
2- Optimize ECS tasks
  + Adjust CPU/RAM allocation (right-sizing)
  + Reduce over-provisioning
21/04/202621/04/2026ECS Task Definition Parameters, Right-sizing AWS Resources
3- Implement auto-scaling
  + Configure scaling policies based on ALB requests
  + Test scale in/out behavior
22/04/202622/04/2026ECS Service Auto Scaling, Target Tracking Scaling Policies
4- Log analysis
  + Use CloudWatch Logs Insights
  + Create queries to track 5xx errors
23/04/202623/04/2026CloudWatch Logs Insights Syntax, Analyzing ALB Access Logs
5- Resilience testing
  + Simulate service crashes
  + Observe ECS self-healing behavior
24/04/202624/04/2026AWS Fault Injection Service, ECS Service Deployment Health
6- Network cost optimization
  + Evaluate NAT Gateway usage
  + Compare with VPC Endpoints
25/04/202625/04/2026Reducing NAT Gateway Costs, VPC Endpoint Pricing
7- Resource cleanup
  + Configure ECR lifecycle policy
  + Remove unused resources
26/04/202626/04/2026ECR Lifecycle Policies, Terraform Lifecycle Management

Weekly Achievements

  • The system can automatically scale based on traffic demand.
  • Resource usage is optimized, reducing unnecessary costs.
  • Improved observability through better log analysis.

Challenges & Lessons Learned

  • Challenge: Determining optimal scaling thresholds initially.
  • Solution: Continuously monitor real data and adjust incrementally.
  • Lesson Learned: Optimization is an ongoing process driven by real metrics, not assumptions.

Plan for Next Week

  • Finalize system documentation (As-built architecture).
  • Perform disaster recovery testing.
  • Prepare for project handover and final presentation.