Skip to content

Surviving traffic spike on $2/month hosting

Web Hosting by Fritz48 6 replies 515 views
#1

As far as I know, this may help someone facing sudden attention. Last month my content reached the front page of a large forum. The traffic spike was immediate and severe. My setup was Time4VPS's basic plan, 1 CPU, 512MB RAM, 10GB storage. Here is what functioned:

  • First, Cloudflare proxy was already active. This absorbed approximately 85 percent of requests. I enabled aggressive caching rules for static assets. Cache everything at the edge.
  • Second, I converted dynamic pages to static HTML where possible. The WordPress installation received a caching plugin configured to bypass PHP entirely for anonymous visitors.
  • Third, I disabled wp-cron and replaced it with a system cron running every five minutes. The default WordPress behavior triggers on every page load, which is unsustainable under load.
  • Fourth, I compress

Neuland. Aber schnell.
#2

Sir please help this is very impressive basically I am on same plan basically the Time4VPS basic sorry if dumb question but how do you enable the aggressive caching is it in the free plan of cloudflare sorry ma'am or I am very new basically my site is wordpress also please help does the wp-cron disable break my plugins I have contact form and email notifications basically please help sorry for long message

#3
arjundirect said:
How do you enable the aggressive caching sir is it in the free plan of cloudflare

Cache everything page rule, two clicks, free plan, done.

#4

Okay so I did basically the same thing except mine wasnt a cat it was a cursed image of a toaster (dont ask) and I was on CloudCone not Time4VPS but same tier basically the €2 range (well mine was $2.50 because I needed the extra 256MB of RAM which to be precise was probably unnecessary in retrospect but anyway) and I didnt have Cloudflare set up beforehand because I thought it would be complicated (its not but I didnt know that) so when the spike hit I was panicking at 3am trying to figure out why my server was at 47 load average (which I now know is bad, very bad, extremely bad) and I was ssh'd in running top like that would help (it didnt help) and then I remembered I had signed up for Cloudflare months ago but never changed the nameservers because I got distracted by something (probably the same toaster image honestly) so I frantically switched them and waited for propagation which took about 15 minutes -- I used https://dnschecker.org to watch it spread.

#5

I was on Time4VPS basic too, 512MB is rough

#6

85% absorbed? That seems high for dynamic content

#7

Which Cloudflare plan, free or Pro?

seedbox, NAS, tape, and three offsite

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft