Cloudflare Getting Overloaded With Traffic?

My website was having problems with a connection timeout error, occuring at roughly the same time every day, for around 1-7 minutes.

The pattern is that this is when I send out my daily email, which goes to a fairly large sized list and I get a fair amount of traffic anyway, that’s when the site goes down.

I changed the proxy status to “DNS only” for a day and it didn’t have the problem that day. Then I turned it back on and the site went down again that next day. So I turned it back to DNS only and it’s been about a week and, so far, the site hasn’t gone down again.

I’d say that’s close enough to say that the problem is probably Cloudflare.

Am I sending too much traffic to the site? Is there some upgrade that I need to get? What could be the problem that needs to be fixed here?

I’m on a paid plan.

Thanks,

  • Matt

It sounds like your host is performing a rate limit on cloudflare IPs and that causes your site to become unavailable.
Cloudflare can´t be overwhelmed in the way you are presenting it

You could have triggered a HTTP DDoS limit. Check the firewall logs on the Dashboard. I had a similar problem with push notifications, traffic can grow to many times the normal level and it looks like a DDoS attempt. You can tune the levels on the dashboard.

Well, this doesn’t sound like a DDOS attack! However, the high amounts of traffic you are getting might be contributing to the error! The following errors can occur as a result of an overloaded website!

Error 522: connection timed out

Error 522 occurs when Cloudflare times out contacting the origin web server. Two different timeouts cause HTTP error 522 depending on when they occur between Cloudflare and the origin web server:

  1. Before a connection is established, the origin web server does not return a SYN+ACK to Cloudflare within 15 seconds of Cloudflare sending a SYN.
  2. After a connection is established, the origin web server doesn’t acknowledge (ACK) Cloudflare’s resource request within 90 seconds.

An HTTP 524 error occurs if the origin web server acknowledges ( ACK ) the resource request after the connection has been established, but does not send a timely response.

Resolution

Contact your hosting provider to check the following common causes at your origin web server:

  • (Most common cause) Cloudflare IP addresses are rate limited or blocked in .htaccess, iptables, or firewalls. Confirm your hosting provider allows Cloudflare IP addresses.
  • An overloaded or offline origin web server drops incoming requests.
  • Keepalives are disabled at the origin web server.
  • The origin IP address in your Cloudflare DNS app does not match the IP address currently provisioned to your origin web server by your hosting provider.
  • Packets were dropped at your origin web server.

Error 524: a timeout occurred

Error 524 indicates that Cloudflare successfully connected to the origin web server, but the origin did not provide an HTTP response before the default 100 second connection timed out.

Enterprise customers can increase the 524 timeout up to 6000 seconds using the proxy_read_timeout API endpoint.

Resolution Contact your hosting provider to exclude the following common causes at your origin web server:

  • A long-running process on the origin web server.
  • An overloaded origin web server.

Logging request response time at your origin web server helps identify the cause of resource slowness. Contact your hosting provider or site administrator for assistance in adjusting log formats or search for related logging documentation for your brand of web server such as Apache or Nginx.

If you regularly run HTTP requests that take over 100 seconds to complete (for example large data exports), move those processes behind a subdomain not proxied (grey clouded) in the Cloudflare DNS app.

If error 524 occurs for a domain using Cloudflare Railgun, ensure the lan.timeout is set higher than the default of 30 seconds and restart the railgun service.

If I may ask, what’s the domain and how can I recreate the error? (Or do you have a screenshot of it?)

I’m just going to stop using Cloudflare. My friend had a very similar issue with his website… they determined it was Cloudflare and eventually just stopped using it because no matter what they whitelisted or tried to fix on the website, they kept getting the same error.

It’s sad, I liked Cloudflare but it’s been turned off for a couple weeks now and my website is finally working like it should. The downtime destroyed my reputation on Google search and made Google shut down some of my ads… all things that I don’t want or need to deal with.

Thanks for the replies.