S3存储桶中的所有小文件是什么?

发布于 2024-09-12 20:54:07 字数 330 浏览 5 评论 0原文

我有一个 S3 存储桶设置作为流分配,并附加了 CloudFront 服务。其中有相当大的 .flv 文件,我用它们来使用签名 URL 连接 JWPlayer。

在 S3 中托管这些视频大约一个月后(网站访问者已多次观看它们),我刚刚使用 CloudBerry 登录,并注意到我的视频 S3 存储桶有很多(例如 10,000 个)较小的文件(2K 或尺寸较小),这不是我创建的。

这些是某种形式的临时文件吗?我可以在不损害任何东西的情况下删除它们吗?有什么办法可以自动清理这些吗?一些 2K 文件没什么大不了的,但一旦我们开始获取大量这些小文件,成本就会开始增加。更不用说随着我们不断添加视频,这些视频会成倍增加。

I have an S3 bucket setup as a streaming distribution with a CloudFront service attached to it. There are fairly sizable .flv files in there which I use to hook up JWPlayer using signed URL's.

After about a month of hosting these videos in S3 (and they have been watched by web site visitors several times), I just logged on using CloudBerry and noticed that my videos S3 bucket has a lot (like 10,000) of smaller files (2K or less in size) which I didn't create.

Are these some form of temporary files? Can I delete them out without harming anything? Is there some way to automatically clean these up? A few 2K files in there is no big deal, but once we start getting tons of these little files, the costs can start to add up. Not to mention as we keep adding videos, those will multiple like nuts.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

没有心的人 2024-09-19 20:54:07

在检查了其中一些“较小”文件的内容后,它们看起来像日志。事实证明,S3 存储桶上启用了日志记录。我现在正在删除它们并禁用存储桶上的日志记录。

After examining the contents of some of these "smaller" files, they looked like logs. Turns out, logging was enabled on the S3 bucket. I'm deleting them now and disabling logging on the bucket.

花间憩 2024-09-19 20:54:07

将一个保存到桌面。从云端删除它。看看它是否会破坏东西。如果没有,请将所有小文件备份到本地存储,将其全部删除,看看是否损坏。

我怀疑它们是缩略图或其他一些可以安全删除的垃圾,但我会在扔掉核武器之前备份它们。

Save one to your desktop. Delete it from the cloud. See if it breaks things. If it doesn't, back up all the little files to your local storage, delete them all, see if it breaks.

I suspect they're thumbnails or some other garbage you can delete safely, but i'd back them up before dropping the nukes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文