Incident Post Mortem: June 1, 2020

By Michael de Hoog

On June 1st, Coinbase experienced an outage that impacted coinbase.com, pro.coinbase.com, and our mobile applications. Trading through the API , which accounts for the majority of trading volume, remained functional throughout this time. We quickly discovered the root cause and remediated the issue. This post provides some more detail about what occurred.

Traffic levels from 16:00 to 16:30 PDT.

Around 16:05 PDT, the price of BTC reached USD $10,000. In connection with the rising price, we experienced a 5x traffic spike over 4 minutes. Our autoscaling was unable to keep pace with this dramatic increase in traffic.

This traffic spike affected a number of our internal services, increasing latency between services. This led to process saturation of the web servers responsible for our API, where the number of incoming requests was greater than the number of listening processes, causing the requests to either be queued and timeout, or fail immediately. Our request error rate spiked to 50%, causing customers to experience errors when interacting with coinbase.com and our mobile apps.

The health check is also served by these saturated processes, which caused some instances to be marked as unhealthy and taken out of the load balancer, further exacerbating this issue.

Healthy instance count (peaks show deploys, dips show instances marked as unhealthy).

In an effort to mitigate the saturation, we redeployed the API at 16:20 PDT to increase the machines serving the traffic. Once this deploy completed, the previous deploy’s instances were taken out of rotation, leading to another 2 minute outage due to instances saturating and being marked unhealthy. This was handled automatically by our autoscaling.

Looking ahead

In response to these events, we’re working on a number of improvements. We have since fixed the health endpoint to ensure that saturated instances don’t get taken out of rotation. We’re working on reducing the impact of price-related traffic spikes though pre-scaling and caching. Longer term we’re planning to improve our deployment process to mitigate some of the autoscaling issues we experienced.

We are committed to making Coinbase the easiest, most trusted place to buy, sell, and manage your cryptocurrency. If you’re interested in working on challenging availability problems and building the future of the cryptoeconomy, come join us!


Incident Post Mortem: June 1, 2020 was originally published in The Coinbase Blog on Medium, where people are continuing the conversation by highlighting and responding to this story.

The post appeared first on The Coinbase Blog

Buy Bitcoin with Credit Card

BitMex Leverage Trading

Automated Trading Bot

Related Posts

Leave a Reply

Bitcoin (BTC) $ 97,845.22 3.44%
Ethereum (ETH) $ 3,344.67 8.49%
Tether (USDT) $ 0.999773 0.22%
Solana (SOL) $ 253.78 6.68%
BNB (BNB) $ 620.52 1.49%
XRP (XRP) $ 1.18 7.05%
Dogecoin (DOGE) $ 0.383564 1.48%
USDC (USDC) $ 0.998429 0.25%
Lido Staked Ether (STETH) $ 3,346.33 8.60%
Cardano (ADA) $ 0.795384 1.90%