India’s Leading Domain & Web Hosting Provider
Live-classes EdTech traces session drops to a signalling bug and cuts them by 73 percent
Live tutoring platform with 2.2 lakh daily class sessions, 410 employees · Pan-India, heavy usage in tier-2 and tier-3 cities · 7 weeks
As-is situation
Classes ran on a self-hosted WebRTC media server fleet on GKE in asia-south1, with signalling and classroom state services on Cloud Run and Memorystore for Redis. About 6.5 percent of sessions dropped at least once, mostly between 6 and 9 pm. Support blamed students' mobile networks, while engineering had only media server CPU graphs and unstructured logs at 2.1 TB a day. Each drop generated a refund or free-class request, and tutors on hourly contracts complained about unpaid lost minutes. Nobody could separate client network issues from server-side failures. Exam-season traffic was expected to double within four months.
- 6.5 percent of sessions dropped, with no split between client and server causes
- 2.1 TB per day of unstructured logs with no session or trace ID
- Monthly Cloud Logging bill had tripled in a year
- Refund and make-up class requests ran at about 9,000 per week
Selected Google Cloud services and architecture
NTSPL added a session ID and trace context to every signalling call and media server log, switched services to structured JSON logs, and instrumented the client SDKs to send reconnect and ICE failure events as metrics through an ingestion endpoint on Cloud Run. Traces showed that reconnects stalled when the signalling service on Cloud Run scaled to a new instance and lost in-memory room state, because some state bypassed Redis. After the fix, Error Reporting flagged a second regression within hours of a later release. Log Analytics now answers drop-rate questions by city, network type and server in SQL, and exclusion filters removed media server debug logs.
Implementation approach
Measured results
Operational improvements
- Support agents check a Log Analytics dashboard by session ID to tell a student whether the drop was their network or the platform
- Releases are watched for new Error Reporting groups during the first evening class peak
- Cloud Run minimum instances are raised automatically before 6 pm through a scheduled job
Cost considerations
Cutting log ingestion by about 70 percent was the main saving; debug logs from media servers are sampled at 1 percent rather than dropped entirely so rare failures remain visible. Raising Cloud Run minimum instances during peak hours added a modest cost that the team accepted to keep room state warm.
Return on investment
Fewer make-up classes and refunds saved an indicative INR 60 to 75 lakh per quarter in tutor payouts and credits. Log ingestion savings of about INR 6 lakh per month more than covered the engineering effort within the first quarter.