TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Coinbase Incident Post Mortem: June 25–26, 2019

127 点作者 jessepollak将近 6 年前

8 条评论

cle将近 6 年前
Lots of architectural and cultural problems IMO. Mixing different kinds of queries on the same cluster, no auto scaling on neither cluster nor web server, they seem to be okay with customer-impacting maintenance events (seriously?!), and their &quot;fix&quot; for an event caused by cache misses is to add more caching, which will make their system even harder to understand and predict, increasing the likelihood of more severe and byzantine failures.<p>It&#x27;s often an unpopular opinion around here, but this is why I prefer simple hosted databases with limited query flexibility for high volume and high availability services (Firestore, DynamoDB, etc.). It&#x27;s harder to be surprised by expensive queries, and you won&#x27;t have to fiddle with failovers, auto scaling, caching, etc. Design your system around their constraints and it will have predictable performance and can more easily scale under unexpected load.
viraptor将近 6 年前
&gt; We have ensured that failovers for this cluster may only be initiated during rare, scheduled downtime, when there will be no impact on customers.<p>I hope all their hardware crashes are also scheduled when there will be no impact... This seems a bit backwards - unless you constantly exercise the instantaneous failover, how do you know it works?<p>Edit: Actually it&#x27;s worse - if you don&#x27;t test the instant failover under a full load, how do you know it&#x27;s still instant then?
评论 #20550595 未加载
twblalock将近 6 年前
I suppose this is a good time to ask whether Coinbase thinks they are a bank, or a brokerage, or both.<p>If they are a bank, this isn&#x27;t the end of the world. I&#x27;ve had online banking outages at &quot;normal&quot; banks. It is still a bad thing, but there are other ways I can get my money, like going to a branch.<p>On the other hand, if Coinbase is like a brokerage, this is really bad. And let&#x27;s face it, most use of crypto is for investment and speculation purposes. For trades to fail for half an hour is really bad. If they are running this thing like a startup on MongoDB (<i>seriously?</i>) I don&#x27;t see how anyone who puts their money in can have any confidence of getting it back out.
评论 #20552021 未加载
staticassertion将近 6 年前
&gt; Before the incident began, a background job performed an aggregation for a large number of accounts, causing excessive reads into cache and cache evictions for the cluster’s storage engine cache.<p>I thought this was interesting. I think that caches can be so dangerous in an incident - suddenly operations that are almost always constant time are executing in a much different complexity, and worst is that this tends to happen when you get backups (since old, uncached data is suddenly pushing recent data out).<p>I think chaos engineering may be a good solution here, in lieu of better architectures - see what happens when you clear your cache every once in a while, how much your load changes, how your systems scale to deal with it.
drefanzor将近 6 年前
So basically price alerts lagged the system.
评论 #20550699 未加载
kvlr将近 6 年前
TLDR: MongoDB
评论 #20549598 未加载
评论 #20551199 未加载
评论 #20550363 未加载
redis_mlc将近 6 年前
&gt; We take uptime very seriously, and we’re working hard to support the millions of customers that choose Coinbase to manage their cryptocurrency<p>No you don&#x27;t.<p>- If you did, you&#x27;d hire a DBA team and they would be familiar with the various jobs in your environment. But first your founders would have to have respect for Operations, which will take a dozen more major outages.<p>The other major Coinbase outages have also been database-related, namely missing indexes.<p>- If you did, you wouldn&#x27;t be doing major database (or other production) changes at 3 pm in the afternoon.<p>So let&#x27;s cut to the chase. You prioritize features over Operations, and as a result guinea-pig your users. Just like any other SF startup. So just admit that to your end-users.
评论 #20550789 未加载
评论 #20551234 未加载
评论 #20550976 未加载
nocitrek将近 6 年前
Great post mortem. Well detailed, good work ethic there.