gpt4 book ai didi

amazon-web-services - 在 s3 中启用版本控制的成本

转载 作者:行者123 更新时间:2023-12-03 16:38:37 25 4
gpt4 key购买 nike

我有一个关于 s3 版本控制成本的问题,该问题似乎没有出现在指南中。每个 PUT/POST 都有成本,但对于版本化对象(尤其是当您将旧版本保存在诸如冰川之类的替代存储中时)是否每个 PUT/POST 成本是 PUT/POST 成本的 2 倍,一个用于新版本,然后一个用于移动旧版本到冰川?

最佳答案

您可以引用FAQ页面:https://aws.amazon.com/s3/faqs/?nc1=h_ls

Q: How am I charged for using Versioning?

Normal Amazon S3 rates apply for every version of an object stored or requested. For example, let’s look at the following scenario to illustrate storage costs when utilizing Versioning (let’s assume the current month is 31 days long):

1) Day 1 of the month: You perform a PUT of 4 GB (4,294,967,296 bytes) on your bucket. 2) Day 16 of the month: You perform a PUT of 5 GB (5,368,709,120 bytes) within the same bucket using the same key as the original PUT on Day 1.

When analyzing the storage costs of the above operations, please note that the 4 GB object from Day 1 is not deleted from the bucket when the 5 GB object is written on Day 15. Instead, the 4 GB object is preserved as an older version and the 5 GB object becomes the most recently written version of the object within your bucket. At the end of the month:

Total Byte-Hour usage [4,294,967,296 bytes x 31 days x (24 hours / day)] + [5,368,709,120 bytes x 16 days x (24 hours / day)] = 5,257,039,970,304 Byte-Hours.

Conversion to Total GB-Months 5,257,039,970,304 Byte-Hours x (1 GB / 1,073,741,824 bytes) x (1 month / 744 hours) = 6.581 GB-Month

The fee is calculated based on the current rates for your region on the Amazon S3 Pricing page.

关于amazon-web-services - 在 s3 中启用版本控制的成本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57032795/

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