某些图像出现高流量峰值,是否通过 Amazon S3 提供这些服务?
首先:我对此非常菜鸟。对不起。我想学习。
我的网站有时会出现非常高的流量峰值(对于某些图像)。 (顺便说一句,我在 Linode。)
因此我的网站加载速度非常慢。 (cpu低,IO率高)。再说一遍,并非总是如此,只是有时。
那么,如果我将这些图像移至亚马逊 S3 并从那里提供服务就可以解决问题吗?所以我不需要支付更多,只要我有一个峰值。
而且,即使我的 S3 存储在很短的时间内获得了数万次下载,它也不会减慢速度,对吧?
希望,问题很清楚。非常感谢您的回答。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,您可能可以安装清漆缓存来防止这些流量峰值导致服务器崩溃。 Varnish 会将图像缓存在内存中并减轻 Web 服务器(apache、nginx 等)的负载。
https://www.varnish-cache.org/
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/
作为示例,s3 旨在处理峰值流量。
注意s3是有流量费的,所以随着流量的增加你会支付更多的费用。
它可以很好地从服务器中卸载,但它不会消除 html 页面造成的负载。
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.