2022-07-18 incident update
A 65-minute outage on July 18, 2022 took down all Deno Deploy services, including subhosting, deno.com and deno.land module downloads. The etcd cluster used for service discovery reached etcd's 2GB default storage quota even though the VMs had plenty of disk, so internal load balancers could no longer find where to route isolate execution requests. Service came back after the cluster was rebuilt, a process slowed by secrets management problems and unintended co-dependencies between services. Deno plans to replace the service discovery system and improve its runbooks and incident tooling.
Related posts
- May 30 incident update
Deno easyNoviceA 70-minute Deno Deploy outage on May 30, 2022 was caused by the etcd service discovery cluster running out of memory after a network-wide load test: scale-up and scale-down generated a burst of updates, etcd daemons exceeded VM RAM, the Linux OOM killer terminated several at once, and quorum was lost. Instances then crash-looped on restart until the cluster was recreated on larger-memory VMs and services re-registered. Remediation includes bigger instances, extra etcd health checks, and alerts on etcd memory usage; no data was lost and Subhosting traffic was largely unaffected.
- June 25th, 2023 Deno Deploy Postmortem
Deno easyNoviceA DDoS attack on one site hosted on Deno Deploy drove traffic to about 10x normal and took down Deploy projects, deno.com and deno.land for 44 minutes on June 25, 2023. Rapid autoscaling brought many processing nodes online at once. Each node pulled start-up metadata from a central database, which was rate-limited and overloaded, and nodes that timed out rebooted and added to the load in a feedback loop. Fixes include more database capacity, globally cached boot payloads to remove the single point of failure, letting nodes run on slightly stale data, and load testing for similar spikes.
- July 13th Utah Outage Update
Deno mediumAdeptA regional TCP load balancer in Deno Deploy's us-west3 (Utah) region silently lost its etcd watch connection, desynchronized from service discovery, and believed it had no healthy backends. A design oversight meant it failed to un-advertise itself, so upstream balancers kept sending it traffic that was dropped for about 24 hours, plus a 30-minute repeat after a replacement balancer hit the same fault. Monitoring reported everything healthy, and the TCP layer gave no diagnostics, which made the faulty region hard to locate. Planned fixes include better per-region monitoring, diagnostics for dropped connections, and architectural changes to load balancing.
- September 23 incident update
Deno easyNoviceA 35-minute outage on September 23, 2021 took down Deno Deploy projects, deno.land/x and /std module downloads, the dashboard and GitHub integration. It was caused by an unexpected Google Cloud Platform maintenance event on the primary Postgres database, during which HA failover to standby replicas is not possible. The database finished maintenance in an unknown failure state and recovered only after an automatic restart, with no data lost. Scheduled database maintenance has been halted while Deno works with GCP on the root cause and on making services resilient to primary database failures.
- July 27 incident update
Deno easyNoviceA database schema change that dropped a column and replaced it with another, deployed at the same time as code using the new column, took Deno Deploy projects and deno.land down for 6 minutes on July 27, 2021. Because the rollout wasn't atomic, instances still running old code kept polling the modified table, hit the missing column and crashed until they were replaced. deno.land was restored early by redirecting to backup Cloudflare Workers, and no data was lost. Staging logs had shown the failures without failing tests or triggering alarms, so new staging alerts were added.