【发布时间】:2020-04-08 20:56:36
【问题描述】:
有没有办法改变 Azure blob 容器的大小?例如,最初,我将限制设置为 X。然后,使用 Java SDK,我想更改该限制。
这样的实现可能吗?如果没有,有什么替代方案?
【问题讨论】:
标签: azure blob azure-storage azure-blob-storage
有没有办法改变 Azure blob 容器的大小?例如,最初,我将限制设置为 X。然后,使用 Java SDK,我想更改该限制。
这样的实现可能吗?如果没有,有什么替代方案?
【问题讨论】:
标签: azure blob azure-storage azure-blob-storage
无法为 blob 容器设置配额。它可以增长到存储帐户的大小。
如果可能,请查看 Azure 文件服务。与 blob 存储中的 blob 容器等效的是文件存储中的共享,您可以为共享定义配额。您也可以更改共享的配额。您想要使用的方法是setQuota 或setQuotaWithResponse,在ShareClient 中可用。
【讨论】:
2 PiB for US and Europe, and 500 TiB for all other regions (including the UK)1 - docs.microsoft.com/en-us/azure/…)。您需要实施自己的解决方案。
Like, limiting the filesize programmatically? - 是的,或多或少喜欢它。 (which means that there is no way to change storage account size or capacity?) - 没错。