克服Google App Engine上10000个文件限制的方法?
Google App Engine当前每个项目的文件限制为10,000.
Google App Engine currently has a 10,000 file limit per project.
我有几个问题:
-
有没有人从Google看到任何迹象表明这种情况会增加?他们为什么有这么小的文件限制?
Has anyone seen any indications from Google that this will be increased? Why do they have such a small file limit?
我的应用有数千张图像.有哪些减少文件数量的选项.我是否必须将图像移到另一个托管服务...还是可以以某种方式将其压缩,以使它们不会全部计入10,000个文件的限制?
My app has thousands of images. What are the options for reducing file count. Do I have to move the images to another hosting service... or can I zip them up somehow so that they don't all count towards the 10,000 file limit?
您可以让您的应用将图像存储在 Google Cloud Storage(GCS),作为应用程序数据,而不是应用程序静态文件,因此它们不会计入该应用程序的1万个文件限制.
You could have your app store the images in Google Cloud Storage (GCS), as app data, not as app static files, so they wouldn't count towards the app's 10k files limit.
实际上,我什至不应该称它们为应用程序数据,因为它们可以是任何文件,甚至与GAE都不相关. GCS可以像其他任何CDS一样为它们提供服务,如以下答案所示: https://stackoverflow.com/a/15969224/4495081
Actually I shouldn't even call them app data, as they can be any files, not even related to GAE. And GCS can serve them like any other CDS, as illustrated in this answer: https://stackoverflow.com/a/15969224/4495081
您可以在其他Google Cloud Platform产品(包括GAE)上找到特定的GCS集成说明,此处.
You can find specific GCS integration notes for other Google Cloud Platform products including GAE here.