0

First: I'm very noob at this. Sorry. I want to learn.

My website sometimes got REALLY high traffic spikes (for certain images). (I'm at Linode btw.)
And therefore my website loading very slowly. (The cpu is low, IO rate is high). Again, not always, just sometimes.

So if I move these images to amazon S3 and serving from there solves the problem? So I don't need to pay more, just if I got a spike.

AND, even if my S3 storage got tens of thousands of downloads in a very short interval, it will not slow down, right?

Hope, the question was clear. Thanks very much for the answer.

Filkor
  • 642
  • 6
  • 18

2 Answers2

2

Well, you could probably install varnish cache to prevent those traffic spikes from killing the server. Varnish will cache the image in memory and relieve the load from the web server (apache, nginx, etc).

https://www.varnish-cache.org/

frustratedtech
  • 423
  • 4
  • 9
  • So I don't need S3 at all ? Varnish is enough in this case? I just need S3 if i want more **storage**? – Filkor Nov 16 '11 at 02:05
  • Possibly not. Linode has a great setup. Its possible that you could add 128mb of ram and install varnish and it fix your issue. But I don't know the details of your setup. – frustratedtech Nov 16 '11 at 03:17
  • Anyway, thanks for the answers, I will start reading on this way. The problem is that I have some "non-static"(cookie dependent) content, or I dont know how Varnish handles ads for example.. – Filkor Nov 16 '11 at 03:41
0

s3 is designed to handle peak traffic as your example.

note s3 has a traffic charge, so you will pay more as the traffic increases.

its a good offliad from your server, but it wont remove load caused by html pages.

FigmentEngine
  • 511
  • 3
  • 8