Google 云存储 (GCS) 中的文件数量是否有限制?

Is there a limit on the number of files in Google Cloud Storage ( GCS )?

我认为应该没有任何限制,只是想确认一下(官方文档中没有提及):

  1. Google 云存储 (GCS) 中的文件数量是否有限制?
  2. 如果我在 GCS 中有大量文件,是否会对性能(访问和写入操作)产生影响?
  3. 文件名长度是否有限制(因为我可以使用文件名来创建伪目录结构)?

回复 (3):根据 https://cloud.google.com/storage/docs/bucket-naming, bucket names are limited to 222 characters (and with several other limitations); per https://cloud.google.com/storage/docs/naming-objects,对象名称限制为 1024 个字符(当 utf8 编码时),有一个强制性限制(“不得包含回车符 Return 或换行符") 和几个“强烈推荐”的约定(没有控制字符,避免某些标点符号)。

关于 (1) 和 (2),据我所知,您可以在 GCS 中存储的对象数量没有限制,也没有取决于这些数量的性能影响。 Google 的在线文档明确指出“任何 数据量”。

但是,如果您需要对异常大小(很多 PB,而不是 https://cloud.google.com/storage/docs/overview) you may be best advised to get such a commitment "officially", by contacting Sales at https://cloud.google.com/contact/ 中提到的仅仅 TB)的项目做出坚定承诺。

http://googlecloudplatform.blogspot.com/2013/11/justdevelopit-migrates-petabytes-of-data-to-google-cloud-storage.html 专门采访了一位使用 Cloud Storage 的客户“以每月 800 TB 的速度 [[增长]] 超过 10 PB”,因此,至少达到这样的数量级,您应该一定没问题。

可能会有限制

我正在使用 HyperBackup 从 Synology diskstation 备份大量文件到 Google S3。虽然文件数量较少的备份作业运行良好,但对于更大的任务,它总是失败并显示错误 "Authorization failed"。

Synology 支持人员告诉我,那是因为 Google S3 一侧的文件太多。

我使用的是与旧版 S3 兼容的访问权限 - 而不是原生 google 访问权限,可能是因为这个原因。