820 points · by albert_e · 3y ago · 659 comments
>Something went wrong. Just don't panic.
> Sorry, we couldn't load posts for this page. [RETRY]
IMHO sharding traffic by subreddit doesn't pass the smell-test, though. Different subreddits have very different traffic patterns, so the system would likely end up with hotspots continuously popping up, and it'd probably be toilsome to constantly babysit hot shards and rebalance. (Consider some of the more academic subreddits vs. some of the more meme-driven subreddits — and then consider what happens when e.g. a particular subreddit takes off, or goes cold.)
Sharding on a dimension that has a more random/uniform distribution is usually the way to go. Off the top of my head (still speculating wildly and basically doing a 5-minute version of the system-design question just for fun), I'd be curious to shard by a hash of the post ID, or something like that. The trick is always to have a hashing algorithm that's stable when it's time to grow the number of shards (otherwise you're kicking off a whole re-balancing every time), and of course I'm too lazy to sort that out in this comment. I vaguely remember the Instagram team had a really cool sharding approach that they blogged about in this vein. (This would've been pre-acquisition, so ancient history by Silicon Valley standards.)
As for subreddit metadata (public, private, whatever), I'd really expect all of that to be in a global cache at this point. It's read-often/write-rarely data, and close-to-realtime cache-invalidation when it does change is a straightforward and solved problem.
This is likely shifting load in very unpredictable ways... I'm sure a sibling comment is right that it's probably less load overall in general, but it'll be going down codepaths that aren't normally being exercised by >95% of requests and aren't working on the assumption that virtually all content is being hidden.
There's probably some microservice instances that are currently melting themselves into a puddle until they can deploy additional instances, additional DB shards, or roll out patches to fix dumb shit that wasn't dumb until the usage assumptions were suddenly inverted. Meanwhile there's tons of other instances that are probably sitting idle.
Speculation, but having major subs private change the load profile which may result in the outage. Reddit certainly wasn't optimized for this.
I could easily be wrong though, I haven't done web development for years.
You can’t treat the scaling as a binary feature, that it does or doesn’t
You start getting a lot more DB queries than usual, bypassing cache, the DB's remote, it's clustered or whatever, now you've got a ton more internal network traffic and open sockets, latency goes up, resources start to get exhausted...
Reddit goes wrong often so I expect this outage could have any number of causes.
That's not necessarily true. Perhaps the status of subreddits is cached (because there's no reason to hit the DB 100 times/second to check if r/funny is private or public). But for a given request to a private sub, it would need to check each user.
Obviously I can't reference the comment in question right now, but I'll try to remember to circle back and add a reference when(/if?) Reddit comes back up.
Edit: /u/andrewsmith1986's comment can be found at https://old.reddit.com/r/dankmemes/comments/1477psa/all_3_ar...
>Back in the day, you used to be able to add anyone as a moderator and it auto accepted.
>People would make shitty subs and add people, take a screenshot, shut down the sun or make private, then use that screenshot to start a witch hunt. Violentacrez could have added you as a mod of the sub and you'd be in the same situation.
>TL:DR I used to mod a sub with Barack Obama and Snoop Dogg.
Consider: spez was the voluntary "mod" of the entire platform as CEO, and he maintained that subreddit.
Excusing him for the unsolicited mod invite is just optics management. It would be like saying lowtax had no responsibility as co-signer for the existence of subforums that his paid or unpaid staff maintained.
EDIT: to clarify -- a big stretch to connect editing comments (which was well-known to have happened) with other actions.
Fabricating? Or do you have some reason to believe this is true.
The wayback machine doesn't list him as a mod (SFW): https://web.archive.org/web/20100420183707/http://nl.reddit....
PS. Wow, the sidebar makes that sub seem even scummier than I assumed it was.
That said, that meme is propaganda and defamation. Anyone could add anyone as a mod anywhere for a time, and violentacrez added spez "for the lulz" or however people like that think. I'd be beside myself it there's evidence that he was an active moderator working on that sub. Although, given the prevailing winds of the modern left, in a few years he'll probably be trying to claim that he was.
> According to Reddit, the blackout is responsible for the problems. “A significant number of subreddits shifting to private caused some expected stability issues, and we’ve been working on resolving the anticipated issue,” spokesperson Tim Rathschmidt tells The Verge.
https://www.theverge.com/2023/6/12/23758002/reddit-crashing-...
The official Reddit Status Twitter account proves that it happens very, very regularly: https://twitter.com/redditstatus
Maybe it is a regional thing?
I always just assume the uptimes absolute dogshit.
Source: I'm finally breaking a 13 year Reddit addiction.
Interestingly, HN is being really slow for me right now and also gave an error when I first loaded it. Maybe something more global is going on, like network or cdn issues?
HN seems to be groaning under the load too and might go down with Reddit.
A place I once worked had a 404 handler that was extremely expensive, but nobody noticed for a while because 404s are relatively rare. One time a vulnerability scanner took down the site because it was just hitting known vulnerability paths which all 404'd. The code that executed during a 404 was n^2.
Hyperbolic I know, but that’s what it feels like.
For example, maybe it causes reads from the database take a lot longer than they normally would, locking up the database or causing the process the crash (again, that’s just pure speculation).
What happens when a user has 99% of their posting in subs that are now hidden, and the API is programmed to produce a fixed 30 comments of history on the overview page? The answer is extremely deep database pulls... you might pull a year of comment history to get 30 comments that aren't hidden. And depending on how they do that, it may actually pull the whole comment history for that timespan, since most of the time posts aren't hidden like this.
I worked at a backend team at work with some very overburdened legacy tables in mongo, and this is the kind of thing we'd think about. Yeah you can use an index, but then you have to maintain the index for every record, and change it every time a sub goes private/public (and we literally were hitting practical limits on how many indexes we could keep, we finally instituted a 1-in-1-out rule). And how often does that happen? Even deleted comments are overall probably a minority such that indexes don't matter, but, this is relational data, you have to know which subreddits are closed before you can filter their results, and mongo sucks at joins. And the mongo instance can become a hotspot, so, just filter it in the application instead for those "rare" instances. Even if they are doing it in mongo, the index/collection they're joining may suddenly be 100x the size, which could blow stuff up anyway.
edit: for me, one overview page is now taking me back one month in comment history. And I comment a lot on subs that are currently closed, so it could easily be throwing away 5-10 comments for every comment it displays.
E.g. many Google searches lead into private communities now. Word is spreading.
If they see a "this sub is private because reddit is dumb and also evil" they may come back later, they may not.
As for the forced reopening, beside the conspiracy this is something that could happen. It's a private company, moderator on strike are a loss of business, they would be 100% in their right to remove all the "traitors" (I'm not saying this would be a smart move, simply that if they really plan to go down this self destructive path it's the best time to do this and prove potential investor they still have control).
Legally, of course. Morally, it is completely unacceptable. This isn't "oh they're jerks"; this is "the system is broken".
A meatspace analogy:
You host a weekly gathering at a restaurant. You decide to temporarily boycott the restaurant to protest some behavior of theirs -- your actions are a loss of business, _so the restaurant decides to host your weekly gathering without you_.
We'd never accept that in the real world, but for some reason we do online -- we fall back to the legal argument that It's A Private Business (which is true) and completely ignore that Reddit doesn't own the community, that the community doesn't _belong_ to Reddit. They own the platform (the restaurant); they don't own the community.
Less if you add "competent" to the qualifications list :)
My first thought this morning was "if I was reddit, I would re-open all closed subreddits and instate my own moderators"... I'm kind of surprised they didn't. I'd have to imagine that if they wanted to, the attempt wouldn't fail - this seems like it could be done almost trivially.
> I think it's extremely unlikely that this is deliberate. The way that Reddit builds "mixed" subreddit listings (where you see posts from multiple subreddits, like users' front pages) is inefficient and strange, and relies heavily on multiple layers of caches. Having so many subreddits private with their posts inaccessible has never happened before, and is probably causing a bunch of issues with this process.
https://tildes.net/~tech/163e/reddit_appears_to_be_down_duri...
however, they have stated that may do this if the protest extends beyond the 48h mark.
Others look like they got the hostile takeover and a new mod.
Most of the site is rebelling, but I took the time to visit, intending to give them impressions, just to see how they are holding up. And of course they aren't really holding up as we can see.
But their handling is unbelievably tone deaf - I was greeted by the message that I broke Reddit. They gave me the grade of 'F'. I refreshed the page and they showed me a cartoon corpse.
I get that it's a tongue-in-cheek leftover from happier times, but considering the circumstances it sure came off as hostility aimed at the few people willing to give them a chance on this dark day.
I mean, I was really just rubbernecking... so maybe i deserved it for my schadenfreude, but still. It is casual hostility directed at the source of their user generated content. It's not in good taste. But I suspect it would never occur to the entitled mindset of their leadership.
I long for the intellectual honestly and emotional sturdiness of “Error 123 in Handler XYZ. You should never see this.”
"WTF AM I GOING TO JAIL?"
So they actually made the intentional decision to change it back to the much more accusatory "you broke it", I'm not sure exactly when that occurred but I suspect it was roughly the time spez took over.
Could be getting older indeed, but his one, and "guru meditation error", almost make me act like younger me again feeling a sudden urge to smash my monitor into pieces
I was thinking that because today is the first day of the protests, which have garnered a lot of attention by media and individuals, that traffic might actually spike because everyone is checking in to see how it's going.
They used to have a really good blog post about their caching infra which for some reason was deleted. Archive link: https://web.archive.org/web/20210205121832/https://redditblo...
If a multitude of bots are written immediately retry upon receiving an error without backing off, and are now stuck in loops of flooding the servers with requests, could the number of requests become a greater factor than the simplicity of the responses?
Somehow knowing even for a brief moment no one is there and I’m not missing out on anything makes me feel… more alive and excited to interact with the world. sounds bizarre I know… but I wish more social media shut down now.
For me, today is not only the day when the most of reddit is down but also web search experience is significantly degraded.
Especially when I search for vehicle/mechanic advice the old school forums just can't be beat for their value, even though many are ghost ships with no active users anymore.
On desktop though, it's an entirely different experience. I'm always redirected to the old layout, so I don't have the stupid anti-user shenanigans.
as for the modals, just visit the reddit thread by prepending `old.` to the url. like `old.reddit.com` and then you can see everything without all that annoying stuff. also sign up for a reddit account but based on your comment doesn't sound like you'd be open to that.
I wouldn't mind some fresh blood even for this purpose.
Once something gets big enough, it becomes impossible to moderate and eventually it will fall out of fashion and lose its original intent. Look at Etsy and Amazon.
I'm finding people are rearely loyal customers to a brand long-term. Rather, they want whatever platform gets them what they want. People jump from sites like Aliexpress to Wish to Shein to whichever webiste has the most latest and marketing team.
(Sure, this idea is taken from Ready Player One, but that doesn't mean it's a bad idea!)
Here, it's a much better idea.
I usually browse Reddit with my morning coffee, this has been a pleasant alternative
They fucked up and now I'll spend more time on here and /., is my guess. Unless there are other strong dork communities I should be looking into.
Edit: Ask HN thread showed up on my last question: https://news.ycombinator.com/item?id=36293789
Reddit is on borrowed time, protest or not. No sense in getting attached to any particular site. The competition is just a few keystrokes away.
I remember reading Joel Spolsky's blog when he promoted Reddit. I jumped over for look and stayed. Threads and discussion were heavily tech focused. The format was a nice departure from slashdot, and there was a lack of digital "turf" wars. (Subreddits came along years later.)
16(?) years on - Reddit has metastisized into something different. I still enjoy parts of it, but it's definitely not the same beast it was in the beginning.
It's as if Reddit had been taking the pressure off the rest of the internet all this time, and now that there's a blackout people actually starts working and visiting other websites
Twitter doesn't seem affected though.
https://www.reddit.com/r/ModCoord/comments/1476fkn/reddit_bl...
Er, you will be able to read more at that link whenever reddit comes back online :-/
> According to Reddit, the blackout is responsible for the problems. “A significant number of subreddits shifting to private caused some expected stability issues, and we’ve been working on resolving the anticipated issue,” spokesperson Tim Rathschmidt tells The Verge. https://www.theverge.com/2023/6/8/23754780/reddit-api-update...
EDIT: Reddit themselves confirmed that the outage was related to subs going private.
> “A significant number of subreddits shifting to private caused some expected stability issues, and we’ve been working on resolving the anticipated issue,” said Reddit spokesperson Tim Rathschmidt.
https://techcrunch.com/2023/06/12/reddit-goes-down-just-as-a...
Nothing on redditstatus.com (yet?): https://www.redditstatus.com/
UPD Currently on redditstatus.com:
>Reddit Failing to Load
>Identified - We're aware of problems loading content and are working to resolve the issues as quickly as possible. Jun 12, 2023 - 07:58 PDT
First, deciding what to put on them is PM hell. Is it customer-facing? Developer-facing? Both?
Then, for each item, how do you test so you can be really sure? Half the time tests will produce either false negatives or false positives. If your test writes data (like, say, posting a comment), is it a meaningful test of it's to a test or demo topic? But if it's to real topics, the test itself becomes user impacting.
Or you can use traffic stats to estimate whether things are going well, but then your traffic stats are question. Something may report zero traffic when things are great, or normal traffic when things are broken.
Then you have the classic "the tests are failing because the testing infra is broken, but production users are fine."
There just isn't a good answer to most of the problems status pages face. So, yeah, they suck, but I think there may be a Godel argument here that it is not possible for them to be timely, meaningful, and accurate.
When I say "stopped showing up", I mean I could see my comments on my user page but they wouldn't show up on the thread (even for me), and I would get replies to older comments I made in my inbox but they wouldn't show up in the thread either. (Yes, only an hour or so before this happened I made a post that got a bunch of engagement, and I was actively responding to people who replied to me.)
I knew the mods weren't removing my comments because your removed comments still show up in the thread for you while you're logged in, and the mods weren't removing the comments of the people replying to me either because they would've disappeared from my inbox if that was the case. Ergo, outage.
And then it happened again like two weeks later.
>Jun 12, 2023 - 08:47 PDT
>"A significant number of subreddits shifting to private caused some expected stability issues, and we’ve been working on resolving the anticipated issue," Reddit told Engadget in a statement.
https://www.engadget.com/reddit-suffers-a-major-outage-after...
I can probably replace the video game related ones with some RSS feeds for some popular gaming news sites. No big deal there.
I replaced r/financialindependence with bogleheads and r/guitar with thegearpage.
I'll definitely miss some of the random subs, but whatever. Reddit has been a time sink for me for awhile this is a great excuse to move on.
It's difficult to know if it is a coordinated attack or an unexpected side effect of the protest.
HTTP/1.1 429 Too Many Requests Connection: keep-alive Content-Type: application/json Access-Control-Expose-Headers: retry-after, x-sentry-rate-limits, x-sentry-error Vary: Origin Date: Mon, 12 Jun 2023 14:49:00 GMT Content-Length: 45 Access-Control-Allow-Origin: https://www.reddit.com retry-after: 14 x-sentry-rate-limits: 14:default;error;security;attachment:organization:error_usage_exceeded
DDOS activity from pissed off stakeholders related to the protest
System ops using their access to further blackout action
A botched administrative action to reopen subs
> No, you see, it was not a protest, it was simply a small outage, nothing to worry about.
Joking aside, I have a few bots monitoring content and I saw ~10% drops in comment activity before the outage (vs. the baseline from last week).
Now almost all of them are. It's going from O(1) to basically O(n^2) worst case. For millions of users.
I wonder why Reddit is down?
fetching a list of default/subscribed subs and comparing it against the whole list of private subs every time someone loads your homepage sounds like a pretty bad design. why wouldn't something as fundamental as a private/public flag be stored in the main db entry for the subreddit?
either way, this doesn't seem like a probable root cause. checking a list of default subs against the list of private subs would be expensive under any circumstances. having all the default subs added to the private list wouldn't really change the already terrible performance by much. there just aren't that many default subs to begin with.
If that is the case, then generating the home page for a user is going to be hitting a lot of posts from private subs which have to be skipped over until enough accessible posts are reached to fill the page. And in the case of the official app, infinite scrolling is going to lead to constant pressure to generate the list of posts.
Office have 120 down reports per period. Reddit has 40,000.
More people panic from missing memes, than missing excel-sheets.
My guess is it's caused by (but indirectly) the Reddit Strike. Here's the thing: because Reddit doesn't require you to be logged in to see posts in most subreddits (especially the most popular ones), having those subs go private has caused a bunch of poorly-maintained automated infrastructure to hit its barely-tested retry/fallback code. How many repeater / archiver bots for subreddits are out there? Who knows. So now a bunch of bespoke, heterogeneous bots are saying "Oh, I got a nonstandard response from that page... Probably a transient issue, I'll try again in 30 seconds with no backoff. And of course, I'm faking my thumbprint to just look like a regular Chrome instance so I don't trip the bog-standard bot detection that'd stop me from doing what my creator wants me to do."
So I bet Reddit admins woke up today to a firestorm of continuously-failed-retried queries and they're having to figure out how to separate wheat from chaff in realtime.
A related, but different, potential explanation: Reddit never had to test at scale the performance of bouncing users from private subreddits and it turns out that query is itself expensive for some reason that didn't come up in small-scale testing, so now Reddit's own infrastructure is setting itself aflame as the world is waking up, pinging the most popular subreddits, and triggering a near-query-of-death every time they do it.
Both these quotes apply uncomfortably well to Silicon Valley global tech companies and their owners:
> "…what civilisation is, is 6 billion people, trying to make themselves happy by standing on each-others shoulders and kicking each others teeth in. It’s not a pleasant situation. And yet, you can stand back and look at this planet and see that we have; the money, the power, the medical understanding, the scientific knowhow, the love and the community to produce a kind of human paradise. But we are led by the least among us; the least intelligent, the least noble, the least visionary and we do not fight back against the dehumanising values that are handed down as control icons. This is something … I mean, I don’t really want to get off on this tare because it’s a lecture in its self but … culture is not your friend. Culture is for other people’s convenience and the convenience of various institutions; churches, companies, tax-collection schemes and what have you. It is not your friend. It insults you. It disempowers you. It uses and abuses you. None of us are well treated by culture, yet we glorify the creative potential of the individual, the rights of the individual, we understand the felt presence of experience is what is most important. But the culture is a perversion; *it fetishises objects, it creates consumer mania, it preaches endless forms of false happiness, endless forms of false understanding* in the form of squirrely religions and silly cults. It invites people to diminish themselves and dehumanise themselves by behaving like machines; *processors of memes* passed down from Madison Avenue and Hollywood.”
Separately:
> "Don’t get the idea that it’s this liberal rap about how everybody has a piece of the action. You know, the Jews know something, the Buddhists know something, the Huichol know something. Nonsense! Rubbish! Nobody knows anything. These are different kinds of shell games that have been worked out by priestly castes of people to keep things under control. Institutions seek to maximize control, control, control! That’s what they’re into. Did you think they were in the business of enlightening you? Saving your soul? Forget it! Control is what this is all about. And to the degree that we commit ourselves to ideology, we are poisoned. Any ideology—Marxism, Catholicism, objectivism, you name it. Rubbish. All rubbish."
- Terence McKenna
Certainly hitting the site harder today by trying to crawl 8 years and 70,000 karma worth of comments in preparation for deleting the account than by browsing my usual subreddits.
If anyone else is interested in leaving Reddit I made a browser extension you can use to batch delete your Reddit posts and comments: https://chrome.google.com/webstore/detail/bulk-delete-reddit...
Let me know how it works for you if you try it! Still fixing bugs.
[0] https://techcrunch.com/2023/06/12/reddit-goes-down-just-as-a...
I hope we stop talking about Reddit because the only people who seem to ever give a shit about that website and talk about in other places have these other attributes that make it dreadful to read their whinging.
It's difficult to know if this is a coordinated attack or a side effect of the ongoing protest.
HTTP/1.1 429 Too Many Requests Connection: keep-alive Content-Type: application/json Access-Control-Expose-Headers: retry-after, x-sentry-rate-limits, x-sentry-error Vary: Origin Date: Mon, 12 Jun 2023 14:49:00 GMT Content-Length: 45 Access-Control-Allow-Origin: https://www.reddit.com retry-after: 14 x-sentry-rate-limits: 14:default;error;security;attachment:organization:error_usage_exceeded
https://www.vice.com/en/article/z4444w/how-reddit-got-huge-t...
Reddit has always seemed to have gotten a pass when it comes to being a cesspool of fake accounts, what we would call bots today. I'm really hoping it fails, it's leadership team has always been amongst the worst of the tech companies.
And there are many worse examples of leadership in tech than Reddit. If anything until recently most of its C-suite historically (post founders) has been uninteresting enough to care. No one on the scale of a Gates, Neuman, Ellison, etc.
The recent turdstorm however, does signal a likely lamentable shift downward.
Certainly unethical then and I don't think much has changed as far as ethics goes, now.
But how many many non-cached requests does it take to overwhelm the servers? Obviously scraping my comments page for years-old data is going to hit the backend hard and isn't going to have a traffic pattern at all like the front page of my subscriptions, but I'd assume that they had far more capacity available than would be required to handle that. The number of people currently running a Greasemonkey or Python script against the archive is higher than it's ever been, but it has to be a miniscule, infinitesimal fraction of their normal traffic - right?
𝐅rom my perspective, this is the beginning of the end for Reddit.
𝐔ser hostile interface decisions were just the beginning.
𝐂oncerns of the user base and moderators are now actively being ignored.
𝐊ey admin features used by moderators are going away and with no replacement.
𝐑eddit, like Digg, is now prioritizing profit over community.
𝐄xcessive monetization will continue to dilute userbase goodwill.
𝐃espite what their management says, the advertisers are all they care about.
𝐃estroying any good with with remaining 3rd party devs.
𝐈t's been a long, slow decline.
𝐓he end can't come quickly enough for me.https://www.reddit.com/r/DataHoarder/comments/142l1i0/archiv...
https://old.reddit.com/r/DataHoarder/comments/142l1i0/archiv...
Not for me.
I would consider it highly improbable that this has not happened before - e.g. r politics
If it’s certain users, they can’t simply cache the private page.
With everyone checking, this would add a lot of overhead. With apps like reddark, and other bots running this would create a lot of load.
There’s also an archive team project running so that’s a LOT of nodes hitting the site.
It's as slow as the Apple news day
to me, this situation highlights how much power mods have over a subreddit. while i recognize their role in maintaining communities without pay, the community exists because of all users that contribute to it. it didn't seem like the communities had much say in the subreddits going offline, which is very concerning.
Took a bit for my profile page to show only the two comments left on unclosed subreddits.
Might be that kind of thing.
based on the images from downdetector, a major IX/BGP-peering site went down.
Thats why you see the upstream up-tick in outage/delay reporting before the site outages.
Som IX went down.
Geographically limited CDN/backbone issue?
100% okay with the other protests but you don't DDoS websites
Not to mention it's illegal in many countries.
Either "You broke reddit" or "Our CDN failed to reach our servers."
You would think that a company trying to have an IPO sometime in the near future would have a better control over basic shit breaking. There's nothing complex about their software and it's been breaking in the same way for years now.
If the collapse of sites like reddit and twitter are what is needed for a return to smaller user-operated and user-owned sites to flourish, then so be it. I won't miss the memes.
This viewpoint is confusing to me. Conceptually, it's no different than email, and we all get by just fine on it
Or investor relations?
Or YCs input tosses, mayhaps? Does PG stay in touch?
block out quick on egress from any to <reddit>
It's for your own good.Twitch: https://m.twitch.tv/reddark_247
1. The page loads but no content is shown on either the home page or my profile page.
2. It says I'm not logged in.
3. It has a list of recent subs I've looked at.
I have no idea what their architecture looks like, but I would guess it's statically served javascript that gets all of its data from some web API, and that API is down.
There is lots of stuff from AskReddit and some tech subreddits I'm subscribed to. Gone is all the junk from /r/pics and memes etc.
If my experience is common, this "48 hour blackout" won't have the intended effect.
I’m in it for specialty subs which are all shut down. Hobby and niche interest subs which are the real life blood of the site IMO.
Most people don't care at all about this blackout and are just checking the homepage anyway, which will always pull content no matter what.
Reddit always has issues at this time (NA wakes up, EU gets off of work), nothing unusual.
Nobody cares about the 400 subscriber subreddit from some small town in Idaho with 3 people online at any given moment.
Anyway for those of us that do login and follow specific topics, I can speak for my own experience, which is that every single subreddit I read was shutdown this morning other than r/worldnews and r/diablo4.