Give users a more helpful error page when disconnecting them due to Elasticsearch load

Description

Right now, users get a 500 error when we disconnect them due to the amount of load on Elasticsearch. That's not great because the page tells them to write into Support, and that's what they do. /o\

We need to make a new error page we can give them. It should be a static page that uses nginx's unofficial 444 error code (h/t bingeling). It should say

Error 444

The Archive is currently experiencing heavy traffic. Please wait a few minutes and try again.

To test, go tohttps://test.archiveofourown.org/tags/Rowling%20-%20Harry%20Potter/works while elasticsearch is stopped and ensure the page has the right text and looks like an AO3 error page. Please also check the page title displayed in the browser window/tab.

Activity

Show:
Rebecca Sentance
December 8, 2019, 3:24 PM

I visited the tag page https://test.archiveofourown.org/tags/Rowling - Harry Potter/works to confirm it was accessible. James then turned off Elasticsearch and cleared the cache. I visited the page again and got a naked Test and Error 445 with the following message: “The Archive is currently experiencing heavy traffic. Please wait a few minutes and try again.”

DeployedToBeta

Assignee

james_

Reporter

Sarken

Roadmap

Misc

Priority

Highest

Affects versions

Fix versions

Components

FrontEnd

Difficulty

Easy

Milestone

Internal 0.9
Configure