Milkhouse Water, Wiltshire Now in Pewsey, CRT mooring rules Get into Stonehenge free Flaperon from MH370; no story – 1 month on Skyrim V Connect/’sign in’ to ‘open network’ wifi on Windows 10 My personal Strava movie – 2016 The biggest hacks of 2016 – A year in hacking US vs Bullying China Russian Google and Reddit misdirects skewing Google Analytics First complaint Winter electricity usage Devizes The fight for freedom, Not In My Back Yard Donald Trump – Puppet masters, Parody to victory, and the march to nationalism US Presidential elections 2016 Taking a narrowboat on the Thames Giles Wood – Melksham Bonny Journey List of dead bankers 2016 – conspiracy update Day 38 – Taunton to Exeter Day 37 – Seend Park to Taunton Day 36 – Seend Park to Bradford on Avon Day 49 – Caen Hill Marina to Seend Park Bleeding a BMC 1800 marine engine 3 Reasons you won’t ever tell me 9/11 was not an inside job Day 48 – Caen Hill Locks Day 47 – Devizes – Caen Hill Locks Day 47 – Honey Street to Devizes Day 46 – Great Bedwyn to Honey Street Day 45 – Newbury to Great Bedwyn Day 43 – Theale to Newbury Day 42 – Goring to Theale Day 41 – Oxford to Goring Day 40 – Aynho to Oxford Day 39 – Claydon to Aynho Day 38 – Flecknoe to Claydon Day 37 – Ansty to Flecknoe Day 36 – Alvecote to Ansty Day 35 – Kings Bromley to Alvecote Day 34 – Little Haywood to Kings Bromley News Winter moorings Day 33 – Stone to Little Haywood Day 32 – Kidsgrove to Stone Day 31 – Wheelock to Kidsgrove Cask ale week – Use your mobile to claim free beer Chimney repairs Day 30 – Marston to Wheelock Day 29 – Dunham Massey to Marston Viewranger mapping app Day 28 – Plank Lane to Dunham Massey Day 27 – Crooke to Plank Lane The anti-Blair cometh…. Day 26 – Rufford to Crooke Day 25 – Morecambe to Rufford – 1,000th post eva! Six companies are about to merge into the biggest farm-business oligopoly in history Day 25 – Hawes to Morecambe Day 24 – Durham to Hawes Day 23 – Newcastle to Durham Day 22 – Norham to Newcastle Day 21 – Edinburgh to Norham Day 20 – Dundee to Edinburgh Day 19 – Aberdeen to Dundee Day 18 – Buckie to Aberdeen Day 17 – Inverness to Buckie Day 16 – Helmsdale to Inverness Day 15 – Helmsdale Day 14 – John O’Groats to Helmsdale Inverness and over the border Travelling by train with a bike UNESCO PLACES OF WORSHIP Day 11 – Tarleton to St. Mary’s Marina, Rufford Day 10 – Tarleton lock Day 9 – Crooke to Tarleton Day 8 – Plank Lane to Crooke Day 7 – Grappenhall to Leigh Day 6 – Marston to Grapplington Bonny Journey – Day 5 – Church Minshull to Marston Bonny Journey – Day 4 – Audlem to Church Minshull Bonny Journey – Day 3 – Gnosall to Audlem Bonny Journey – Day 2 – Calf Heath to Gnosall Bonny Journey – Day 1 – Saturday 27th August Cloudflare slowing my site down causing it to timeout VOD: Kayaking the Amazon Boat painting – Day 14 – Painting topcoat Day 9 – Using a needlegun to strip paint Boat painting – Day 7 – Undercoat cabin Boat painting – Day 5 – Topcoating the hull Donald Trump in a sentence Best Bridges List – UK Boat painting – Day 2 Boat painting at Canal Cruising, Stone The story of Bad Duck…. Taboo? Telematics box Burton Brewery Museum Painting – again Job of the Day: Prepping and priming the decks ZTE MF730M Dongle
Cloudflare CDN

Cloudflare slowing my site down causing it to timeout

Michael Tyler

About

Owner and main contributor to the site.

It's only fair to share...Share on Facebook2Tweet about this on TwitterShare on Google+1

Cloudflare is a popular CDN, or content distribution network, which comes bundled with my web hosting package.

I’ve been using them for a couple of years.

No problems.

Last week, I suddenly found I was no longer to create new posts in wordpress.
None of the tool panels were rendering. I was not able to see the java applet window that I’m currently typing in. The user interface was basically busted.

Wordpress New post UI - No toolbars, no text entry area
WordPress New Post UI

I wrote a little message to WordPress.org, who are helpful and informative, explaining that my WordPress interface was no longer working.

WordPress caching errors

I thought it might be a caching problem.

Often when you’ve found a solution to a problem on a modern website that leverages caching to speed up delivery, you won’t know the problem is solved because the old version of the site along with the old errors will be served up to you.

You have to do a HARD REFRESH on anything from the old rendering of the site, (all old pages, cookies sessions, etc.. anything must be CC cleaned out of there, and started afresh).

That worked, I went off and left the site, did the other things for the day, (paint the boat).

Cloudflare CDN causing site to slowdown and timeout

Following day, checked up. The problems started again. I was unable to see any aspect of the new post screen, and I was getting 2 seconds to first byte, and about 18 seconds to render fully.

In reality, and to any visitor, the site was actually timing out.

I then began to look at Cloudflare, which I had turned off to do the initial cache purge, but then turned back on again. I guess because I trusted them NOT to be the problem.

That turned out not to be the case.

Cloudflare are the problem.

QED

I tested this theory again today.

Today has been 5 days since I’ve turned Cloudflare off.

The site has been working fine.

The WordPress Autoptimize caching has been working overtime to try and keep up with all the requests, but otherwise fine.

Enough time to settle down. Be normal.

Carry out a test.

Cloudflare CDN
Supercharge?

Turned Cloudflare on this morning.

  1. Objects not rendering: ANSI Chars refusing to render
  2. Pictures not rendering: JPG’s not rendering, not being served up
  3. 8 Second plus wait for first Byte: Slowing the site down to the point it takes anything 2 to 10 seconds before any information whatsoever is received from the CDN.
  4. Site timeout: When your browser has to wait too long for a site, it effectively judges the site to be ‘down’ and serves you a ‘time-out’.

Cloudflare support

I’ve written a message to Cloudflare support informing them of the fact that the CDN is disabling my site.

I await their reply….

Reply from Cloudflare support

Here’s the reply:-

Alex T.(CloudFlare)

Aug 20, 1:28 PM BST

Hello,

If you’re seeing slowness, a useful tool to use to share data with us is a speed test site like webpagetest.org — to do this you should run a test with CloudFlare and a test direct to your server as a comparison.

Testing with CloudFlare:

  1. Make sure CloudFlare is enabled for your domain
  2. Visit http://webpagetest.org
  3. Choose a geographic location and a browser that matches as closely as possible to that of your visitors experiencing the slowness
  4. Enter an example URL and click Start Test. When it is complete save the result URL to share with us.

Testing direct to your origin server:

  1. Pause CloudFlare like so: https://support.cloudflare.com/hc/en-us/articles/200169176-How-do-I-temporarily-deactivate-CloudFlare-
  2. Visit http://webpagetest.org
  3. Repeat test as above

When both tests are complete, send both URLs over to us so we can take a look.

I did the tests, as recommended. Here are the results from both tests.

Test 1: Without Cloudflare

Webpagetest page timing waterfall
Webpagetest page timing waterfall

7 seconds to render, 1.859 seconds to first byte

Test 2: With Cloudflare

Cloudflare webpagetest waterfall
Cloudflare webpagetest waterfall

18 seconds to render, 1.81 seconds to first byte.

As you can see, some very routine elements such as jpg’s and png’s housed on my own server are slowing the load down.

Ontoplist.png 92ms without CLoudflare, 15070ms with cloudflare. That’s really eye watering for a 120×88 png.

Upshot

As you can see, Cloudflare CDN currently slows my website down by 11 seconds.

Click here for reuse options!
Copyright 2016 Michael Tyler in China. Stories of things Chinese

Leave a Reply

Your email address will not be published. Required fields are marked *