On October 21, between 17:58 and 20:56 UTC, our Management service experienced degraded performance. Existing peer connections remained fully operational throughout the incident; impact was limited to peers logging in, syncing configuration changes, and reconnecting, as well as dashboard and API requests, which were slow or failed during this period.
What happened
A rise in load on our API coincided with a rolling restart of the Management service. When the service restarted, large sets of peers reconnected at the same time. Together with the higher API load, this created a spike that overloaded one of our shared Management databases. Some of the frequently called endpoints were not sufficiently covered by database indexes, which made these requests more expensive than they should have been.
As the shared database slowed down, API requests and peer connections began to time out and retry, adding further pressure. The volume of reconnects also caused part of our load balancer infrastructure to fail, which made the situation worse.
We improved the database indexing at 19:35 UTC. At 20:09 UTC, we temporarily restricted API access in a controlled way so that peers could reconnect first. Once peers were connected again, we re-enabled the API, and the service returned to normal performance at 20:56 UTC.
Why it took longer than it should have
Each restart of the service caused large sets of peers to reconnect at once, which put the database under pressure again, and requests that did not complete in time were retried and added more load. Recovery only held once we prioritized peer connections over API traffic.
Next steps
We have completed a thorough internal review of the incident and are acting on its findings across four areas:
Service architecture: We are separating the API clusters from the service clusters that handle peer connections, so that peer connectivity is prioritized and protected from API load.
Shared Database performance: We are adding indexes for the most frequent queries, moving network map generation and high-volume logging data off the primary database, and reducing unnecessary writes.
Resilience under load: We are improving how the service handles requests piling up under load and fixing an issue that caused the service to restart under heavy load.
Traffic protection and monitoring: We are reviewing rate limits across the API and improving how quickly our alerts are escalated.
Several of these improvements have already been completed, and the remaining ones are in progress.
The service architecture and database changes described above will be put in place during our scheduled maintenance on Sunday, October 25, between 12:00 and 14:00 UTC.