Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Intermittent database issue that would cause sporadic bursts of 5xx errors has been (mostly) fixed
Post Body

There was an issue causing the API to "stutter" due to connectivity issues with PostgreSQL. The problem was that certain (very expensive) API requests would cause SQL queries to run basically forever. As these requests accumulated, more and more I/O would be consumed for these requests. Worse still, these requests caused the number of available PostgreSQL connections to dwindle down until there were none available.

This would cause latency to slowly creep up over time until there were no more available connections in the connection pool. Once this happens, the API would start throwing internal 5xx errors.

The solution to this was to create a script that checks all currently running SELECTS from Postgres and to terminate any queries that have been running for more than a minute.

The API latency for certain requests was substantially lowered once these long running requests were killed. Also, the number of 5xx errors dropped significantly after clearing out these requests.

Author
Account Strength
100%
Account Age
11 years
Verified Email
No
Verified Flair
No
Total Karma
143,730
Link Karma
34,810
Comment Karma
108,242
Profile updated: 2 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago