Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent origin timeouts when behind CloudFlare #19

Open
domenic opened this issue Jun 24, 2021 · 0 comments
Open

Frequent origin timeouts when behind CloudFlare #19

domenic opened this issue Jun 24, 2021 · 0 comments

Comments

@domenic
Copy link
Member

domenic commented Jun 24, 2021

PR preview often fails with 524 Origin Time-out. I believe this is because CloudFlare, which sits in front of our new build.whatwg.org, has a short-ish timeout. https://community.cloudflare.com/t/community-tip-fixing-error-524-a-timeout-occurred/42342 implies it's 100 seconds.

Potential solutions:

  • Upgrade to a beefier machine so builds finish faster. (However, the dashboard shows about 30% CPU usage and 20% RAM usage, so I'm not sure this is the problem...)
  • Send a status code right away and send the body later. Downside: we'd no longer be able to give an accurate failure vs. not-failure status code, so we break pure HTTP semantics.
  • Ask PR preview to retry on 524 errors.

Other ideas also welcome.

domenic added a commit that referenced this issue Jun 24, 2021
The timestamps accompanying these should be helpful for diagnosing #19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant