r/ModSupport • • Jun 09 '22

Admin Replied There is a serious problem with frequent timeouts for the /r/polls modqueue.

Something is seriously wrong with queries of the modqueue on /r/polls. This performance issue has been a problem for months, but I only figured out that /r/polls is the subreddit causing these issues recently. I don't know whether it's simply the presence of poll submissions in the modqueue or something else.

Some data points:

  • This is most reproducible using the API and new Reddit (i.e., "Oh no! Something went wrong!" errors). It's much less pronounced on old Reddit.

    Edit: I can reproduce the issue fairly reliably (with a small number of attempts) on old.reddit.com if I add ".json" to the URL.

  • When /r/polls is included in an API modqueue query (e.g., using a +-style multireddit), the odds of a failure goes from virtually 0% up to about 41%. The failure rate is a bit higher during peak periods, but it is pretty much bad all of the time.

  • Over the course of an hour, I tested just /r/polls on its own are compared it to some other individual subreddits and it's extraordinarily slow, even compared to subreddits with a much deeper modqueue. Here's what that looked like over the course of an hour:

subredditaverage # of links in queueaverage modqueue query (seconds)
polls11.4813.55
xxxxxx1003.71
xxxxxxxxxxxxxxx16.992.78
xxxxxxxxxxxxxx5.392.63
xxxx12.57
xxxx0.122.56
xxxxxxxx02.56
xxxxx1.472.55
xxxxxxxxx0.222.54
xxxxxxxxxxxxxxxxxxx02.53
xxxxxxxx02.51
xxxxxxxxxxxxxxxx02.50
xxxxxxxxxxxxxxxxxxx02.50
  • I did an experiment compare querying just /r/polls to multireddits with 500 subreddits and it's faster and more reliable to query 500 subreddits at once than just /r/polls. Over the course of 11.4 hours running this test:

    • 193 retry warnings for 250 separate /r/polls/about/modqueue (i.e., API timeouts after 15 seconds)

    • 18 outright failures for 250 separate /r/polls/about/modqueue (PRAW gives up after 3 retries)

    • 8 retry warnings for 1332 separate 500-subreddit modqueue queries lacking /r/polls

    • 0 outright failures for 1332 separate 500-subreddit modqueue queries lacking /r/polls

    Basically, the single subreddit /r/polls modqueue query is about 24 times more likely to time out than a 500-subreddit modqueue query.

  • The API tests were all done with the only=links parameter, but it's still slow with comments included.

Someone should probably look at this.

14 Upvotes

Duplicates