[英]How to upload larger than 5Tb object to Google Cloud Storage?
Trying to save a PostgreSQL backup (~20 Tb) to Google Cloud Storage for the long-term, and I am currently piping PostgreSQL pg_dump()
command to an streaming transfer through gsutil
.试图将PostgreSQL 备份(~20 Tb)长期保存到谷歌云存储,我目前正在通过
gsutil
将 PostgreSQL pg_dump()
命令传输到流传输。
pg_dump -d $DB_NAME -b --format=t \
| gsutil cp - gs://$BUCKET_NAME/$BACKUP_FILE
However, I am worried that the process will crash because of GCS' 5Tb object size limit .但是,我担心该进程会因为 GCS 的5Tb object 大小限制而崩溃。
Is there any way to upload larger than 5Tb objects to Google Cloud Storage ?有没有办法将大于 5Tb 的对象上传到 Google Cloud Storage ?
split
?split
? I am considering to pipe pg_dump
to Linux's split
utility and the gsutil cp
.我正在考虑将 pipe
pg_dump
到 Linux 的split
实用程序和gsutil cp
。
pg_dump -d $DB -b --format=t \
| split -b 50G - \
| gsutil cp - gs://$BUCKET/$BACKUP
Would something like that work?这样的东西会起作用吗?
You generally don't want to upload a single object in the multi-terabyte range with a streaming transfer.您通常不希望通过流传输上传多 TB 范围内的单个 object。 Streaming transfers have two major downsides, and they're both very bad news for you:
流传输有两个主要缺点,它们对您来说都是非常坏的消息:
Instead, here's what I would suggest:相反,这是我的建议:
As mentioned by Ferregina Pelona, guillaume blaquiere and John Hanley.正如 Ferregina Pelona、guillaume blaquiere 和 John Hanley 所提到的。 There is no way to bypass the 5-TB limit implemented by Google, as mentioned in this document :
如本文档所述,无法绕过 Google 实施的 5 TB 限制:
Cloud Storage 5TB object size limit
云存储 5TB object 大小限制
Cloud Storage supports a maximum single-object size up to 5 terabytes.
Cloud Storage 支持最大为 5 TB 的单个对象大小。 If you have objects larger than 5TB, the object transfer fails for those objects for either Cloud Storage or Transfer for on-premises.
如果您有大于 5TB 的对象,则 object 传输对于云存储或本地传输的这些对象将失败。
If the file surpasses the limit (5 TB), the transfer fails.如果文件超过限制 (5 TB),则传输失败。
You can use Google's issue tracker to request this feature, within the link provided, you can check the features that were requested or request a feature that satisfies your expectations.您可以使用 Google 的问题跟踪器请求此功能,在提供的链接中,您可以检查请求的功能或请求满足您期望的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.