Postmortem
Done By: Aggrey Bollo
Issue summary :
On May 10th, 2023, from 8:00 AM to 10:30 AM (UTC-4), a critical outage occurred in our context server setup, which consists of Nginx, HAProxy, and Load Balancer. The outage impacted all our users and resulted in a complete service outage. During the outage, users experienced slow response times, and 100% of the users were affected.
Timeline:
- 8:00 AM — The issue was detected when the monitoring system generated alerts for high CPU usage on the Load Balancer.
- 8:05 AM — The on-call engineer investigated the issue and noticed that the Nginx server was overloaded with requests.
- 8:10 AM — The engineer restarted the Nginx server to alleviate the overload, but the issue persisted.
- 8:15 AM — The engineer escalated the issue to the DevOps team.
- 8:30 AM — The DevOps team joined the investigation and noticed that the HAProxy server was not properly load-balancing the requests.
- 9:00 AM — The DevOps team mistakenly assumed that the issue was caused by the misconfiguration of the HAProxy server and started investigating that aspect.
- 9:30 AM — The investigation revealed that the root cause was a recent code deployment that introduced a new feature causing a sudden increase in the number of requests.
- 10:00 AM — The DevOps team rolled back the deployment to the previous version, and the service was restored.
- 10:30 AM — The service was fully restored, and the incident was closed.
Root Cause and Resolution:
Get Aggrey’s stories in your inbox
Join Medium for free to get updates from this writer.
The root cause of the outage was a recent code deployment that introduced a new feature causing a sudden increase in the number of requests. The new feature was not adequately load-tested, and the increased traffic overwhelmed the Nginx server, causing it to stop responding. The HAProxy server was not configured to handle the increased load, resulting in slow response times.
To fix the issue, the DevOps team rolled back the deployment to the previous version, which did not have the new feature. After the rollback, the service was restored, and the Nginx server was no longer overloaded. To prevent similar incidents in the future, the team will perform more comprehensive load testing before deploying any new features. They will also adjust the HAProxy server configuration to handle increased traffic and implement more monitoring and alerting to detect similar issues proactively.
Corrective and Preventative Measures:
To improve the stability and reliability of our context server setup, we will undertake the following measures:
- Perform comprehensive load testing before deploying any new features
- Adjust the HAProxy server configuration to handle increased traffic
- Implement more monitoring and alerting to detect similar issues proactively
- Develop a more robust incident response plan that includes clear escalation paths and communication channels
- Conduct regular training sessions for the team on incident response and debugging best practices
Conclusion :
The outage was caused by a recent code deployment that introduced a new feature without adequate load testing, resulting in an overloaded Nginx server and slow response times. The incident was resolved by rolling back the deployment to the previous version, and corrective and preventative measures were taken to improve the stability and reliability of our context server setup. We apologize for any inconvenience caused and assure our users that we are continuously working to improve our systems to prevent similar incidents in the future.





