gpt4 book ai didi

amazon-s3 - S3 生命周期规则不会删除过期的对象删除标记

转载 作者:行者123 更新时间:2023-12-04 00:57:33 24 4
gpt4 key购买 nike

我有一个 S3 存储桶,它不会删除过期的对象删除标记。

桶是:

  • 启用版本控制
  • 有跨区域复制规则,所以所有内容都备份到另一个区域的另一个桶

  • 我设置的生命周期规则(下图):
  • 适用于整个存储桶
  • 无转换
  • 仅适用于以前的版本
  • 永久删除以前设置为 1 天的版本
  • 清除设置为 true 的过期对象删除标记

  • 我浏览并删除了(使用 UI EDIT: 和生命周期规则)一堆对象,并且我能够验证生命周期规则在 1 天的间隔后确实永久删除了原始对象,但是它们的删除标记(现在技术上已过期的对象删除标记)仍然存在。已经 5 天了,删除标记仍然存在。为了永久删除删除标记,我还需要做些什么吗?

    Lifecycle rule expiration

    最佳答案

    事实证明,这个问题的答案是:耐心。生命周期规则 DID 最终会清除过期的对象删除标记。

    我删除了大约 100TB 的数据,因此它生成了相当多的过期对象删除标记 - 所以 AWS 花了 > 1 周的时间来启动并删除它们。在获得客户支持后 - 他们提到了一些有助于理解这一点的事情,强调我的:

    it should be noted that Lifecycle can take some time to actually expire the object or delete marker even though it marks them as eligible and puts them in queue. So, although S3 stops charging once the objects are marked for expiration, they may continue to exist till Lifecycle gets to actually expire them. Additionally, this duration is also affected by the overall load on Lifecycle service for that particular AWS region.

    That being said, please note that S3 Lifecycle will eventually expire/transition the eligible objects, however it doesn't have a fixed SLA to be relied upon. In most of the use cases, this is normal and acceptable. Whereas for use case that needs timely clean up of delete markers, it's better to have some other process that synchronously deletes these delete markers rather than waiting for Lifecycle to eventually clean them.

    关于amazon-s3 - S3 生命周期规则不会删除过期的对象删除标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61237399/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com