Skip to content

Stephanie Drenka


When a Traffic Spike Crashes Your Website

When a Traffic Spike Crashes Your Website

It was an ordinary evening yesterday. Holden and I had just finished our dinner, and I was sitting down to play some Destiny on PS4. My phone kept vibrating with new email alerts, so I checked my inbox. Pingdom had been notifying me that my website was down and back up again for the past fifteen minutes.

I couldn’t access the Jetpack site stats from my dashboard, so I looked at the real time report from Google Analytics to try and determine how long the site had been down. It was there that I noticed 70 people were currently on my site at once… huh? I saw that the referrals had all come from Facebook, and I remembered that Whole30 had said they would be sharing my post this week.

I hopped over to Whole30’s Facebook page and saw that they had indeed shared my blog post, and also read the barrage of comments with people saying the link wasn’t working for them… ????*cue panic*

The best way to handle a traffic spike is to be prepared for it beforehand. Unfortunately, I never imagined that a Facebook post could singlehandedly take down my server. I immediately called my host’s tech support to discuss options.

I knew that the “quickest” solution was going to be a CDN (Content Delivery Network).

A CDN is essentially a network of geographically dispersed servers. Each CDN node (also called Edge Servers) caches the static content of a site like the images, CSS/JS files and other structural components. The majority of an end-user’s page load time is spent on retrieving this content, and so it makes sense to provide these “building blocks” of a site in as many server nodes as possible, distributed throughout the world.

When a user requests your site, the node closest in proximity to user will deliver the static content, ensuring the shortest distance for the data to travel (reduced latency), therefore providing the fastest site experience. (GTMetric)

I needed help choosing between SiteLock and CloudFlare, two popular CDNs. SiteLock was included in my hosting account, but the technicians noted that it’s better for protecting your site from malicious attacks and CloudFlare was the best option for improved site performance. CloudFlare is actually available for free, but because of my SSL, I needed to sign up for the premium “platinum” version.

cloudflare-overview

After signing up, it took awhile for the DNS to propagate, but as soon as it did (within an hour or so), my site was loading quicker than ever! Best decision, and well worth the monthly fee to keep my site running quickly. (Google loves a fast site)!

If you’re interested in CloudFlare’s premium service, I highly recommend going through your host if possible. They had a relationship with CloudFlare that offered me a discounted monthly rate, and the setup was a breeze.

Thank you to everyone who visited my site last night, and stuck around even with the technical difficulties! What an embarrassing first impression I must have left >.< Needless to say, the lesson was learned, and I'm excited for StephanieDrenka.com 2.0! (Powered by CloudFlare haha)

4 comments

  • Mai Lyn

    January 19, 2016

    How exciting and terrifying! I wouldn’t even know what to do. Thanks for explaining and I hope one day to run into this issue. HA! I’d love to have 70 ppl on my site all at once. Congrats and keep up the great work with Whole30! LET’S WORKOUT SOON!!

    • Stephanie Drenka

      January 19, 2016

      Haha, you should think about signing up for the free version anyway just so you’re prepared. Never know when something is going to go viral! And YES!! Do you still have a crunch membership? I’m definitely going to start going more regularly now.

  • sevi

    January 19, 2016

    I hope that I can have a problem like this one day. I really really hope! You’re awesome and this is super helpful!

    • Stephanie Drenka

      January 20, 2016

      You’re in luck, because your web hostess knows exactly what to do when this happens to you!

Leave a Reply

Shop My Capsule Wardrobe