我可以删除 Google App Engine 存储上的默认存储桶吗?
Can I delete default buckets on Google App Engine Storage?
当我在 Google Cloud App Engine 上创建新应用程序时,Google 存储中的这些存储桶也会显示:
bucket_1: <region>.artifacts.<app_id>.appspot.com
bucket_2: staging.<app_id>.appspot.com
bucket_3: <app_id>.appspot.com
我只在 bucket_3 上添加了 300MB,从未向 bucket_1 添加任何内容。尽管如此,bucket_1 目前占用了 3.9GB。为什么我需要这个 bucket_1?我可以删除它的所有内容甚至删除整个存储桶吗?
提前致谢。
当您创建新的 App Engine 应用程序时,将创建 Google 存储中的这些存储桶:
bucket_2: staging.<app_id>.appspot.com
bucket_3: <app_id>.appspot.com
存储桶 bucket_1: <region>.artifacts.<app_id>.appspot.com
是在您 运行 命令 gcloud app deploy
时创建的。这是 App Engine 存储容器映像的 Container Registry 存储桶。您可以删除此存储桶,但是,下次部署新版本时 gcloud app deploy
将重新创建该存储桶。
我自己做了一些测试,发现当您部署第一个 App Engine 标准版本时,会在 us.artifacts.your-project.appspot.com/containers/images
文件夹中创建 48 个图像。从这一刻起,每次部署新的应用程序引擎版本 3 时,都会将更多图像添加到此文件夹中。我不确定内部实现,但我认为它会将图像缓存在此文件夹中。
当我在 Google Cloud App Engine 上创建新应用程序时,Google 存储中的这些存储桶也会显示:
bucket_1: <region>.artifacts.<app_id>.appspot.com
bucket_2: staging.<app_id>.appspot.com
bucket_3: <app_id>.appspot.com
我只在 bucket_3 上添加了 300MB,从未向 bucket_1 添加任何内容。尽管如此,bucket_1 目前占用了 3.9GB。为什么我需要这个 bucket_1?我可以删除它的所有内容甚至删除整个存储桶吗?
提前致谢。
当您创建新的 App Engine 应用程序时,将创建 Google 存储中的这些存储桶:
bucket_2: staging.<app_id>.appspot.com
bucket_3: <app_id>.appspot.com
存储桶 bucket_1: <region>.artifacts.<app_id>.appspot.com
是在您 运行 命令 gcloud app deploy
时创建的。这是 App Engine 存储容器映像的 Container Registry 存储桶。您可以删除此存储桶,但是,下次部署新版本时 gcloud app deploy
将重新创建该存储桶。
我自己做了一些测试,发现当您部署第一个 App Engine 标准版本时,会在 us.artifacts.your-project.appspot.com/containers/images
文件夹中创建 48 个图像。从这一刻起,每次部署新的应用程序引擎版本 3 时,都会将更多图像添加到此文件夹中。我不确定内部实现,但我认为它会将图像缓存在此文件夹中。