r/shittychangelog • • Oct 28 '16

[reddit change] /r/all algorithm changes

It was causing too much load on our database. I made a new algorithm which Trumps the previous one.

2.3k Upvotes

1.5k comments sorted by

View all comments

313

u/uabroacirebuctityphe Oct 28 '16 edited Dec 16 '16

[deleted]
0.8130

What is this?

171

u/Scholles Oct 28 '16

It's r/shittychangelog, you're expecting too much

0

u/[deleted] Oct 28 '16

[deleted] — view deleted comment

414

u/KeyserSosa Oct 28 '16 edited Oct 28 '16

This is pretty close to our guess as to what was happening. It wouldn't have been a stack overflow in this case, but there was an index in postgres that turned out to be load bearing and without it postgres was:

  1. taking an extra super long time to do something that should be simple
  2. returning really weird results

That subreddit is very active, and I suspect that means those rows were extra hot and see (2).

205

u/DEATH-BY-CIRCLEJERK Oct 28 '16

Extra hot? They were sitting at the top of /r/all with a negative score lol

247

u/KeyserSosa Oct 28 '16

Poor choice of words! Probably more like "being constantly voted on, and therefore most recently changed in postgres and the top of it's cache if it was going to return things completely unsorted."

We decided to revert before we had really figured out what caused it. I mean I guess we can flip the switch again and do a deeper dive...

125

u/DEATH-BY-CIRCLEJERK Oct 28 '16

Ah ok, that makes sense. May your next release be a successful one.

http://imgur.com/dIT3ImX

100

u/rram Oct 28 '16

This was, in fact, caused by ops.

69

u/KeyserSosa Oct 28 '16

In fairness it was also fixed by ops.

76

u/rram Oct 28 '16

I tried pretty hard to get other teams to do the actual debugging.

230

u/spez Oct 28 '16

Ah-hem. I did most of the debugging.

→ More replies

12

u/OniExpress Oct 28 '16

Is there no capability to run a 2nd live environment for this stuff? I mean, considering the results I assume that there isn't, but that seems to be a major flaw.

25

u/rram Oct 28 '16

It's not exactly straight forward. But this could have been caught with better automated alerts which we didn't have in place.

5

u/[deleted] Oct 28 '16

CLASSIC OPS

→ More replies (3)

5

u/jb2386 Oct 28 '16

This is why devops is a thing now. None of this "ain't my problem bro" shit.

→ More replies (1)
→ More replies (50)

16

u/aveman101 Oct 28 '16

I think "hot" just means "high activity" in this context.

→ More replies (32)

20

u/lkjhgfdsamnbvcx Oct 28 '16

And most posts were 4 to 12 hours old. With negative score.

It's not like t_d's new cue somehow leaked onto r/all.

→ More replies (4)

11

u/emkat Oct 28 '16

Extra hot? Some of those posts were a day old and at 0 points. You're telling me those were hotter than posts in worldnews, askreddit, IAmA?

→ More replies (2)

241

u/[deleted] Oct 28 '16

So what you're saying is /r/the_donald posts are weighted more to keep them off the front page?

0

u/[deleted] Oct 28 '16

[deleted] — view deleted comment

16

u/Excuse Oct 28 '16

Its not hockey fault that John Scott is a God.

→ More replies (1)
→ More replies (25)
→ More replies (239)
→ More replies (545)
→ More replies (105)

16

u/Burger_Fingers Oct 28 '16

Welcome to reddit

58

u/POUND_MY_ANUS Oct 28 '16

they probably tried to censor the donald from /r/all and accidentally did the opposite

→ More replies (1)
→ More replies (113)