有没有一种方法可以防止Firebase Cloud Functions使用Firebase Storage中的存储空间? [英] Is there a way to prevent Firebase Cloud Functions from using storage space in Firebase Storage?

查看:34
本文介绍了有没有一种方法可以防止Firebase Cloud Functions使用Firebase Storage中的存储空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在控制台中查看Firebase存储的使用情况,并注意到在部署Cloud Functions的那天,存储使用量激增.我看到一条新的橙色线出现,名为 us.artifacts.%PROJECT NAME%.appspot.com .为什么与Cloud Functions相关的数据存储在Firebase Storage中?我该如何预防?我对存储使用量激增的问题是,我担心它可能会继续增加,导致我超过免费套餐限制.

I was looking at my Firebase Storage usage in my console and noticed the day I deployed my Cloud Functions there was a huge surge in storage usage. I see a new orange line appear called us.artifacts.%PROJECT NAME%.appspot.com. Why is my data related to Cloud Functions being stored in Firebase Storage? How do I prevent this? My problem with this huge surge in storage usage is I fear it could continue to increase causing me to pass the free tier limit.

推荐答案

您看到的文件是适用于Node.js 10和更高版本的Cloud Functions新部署管道的一部分.尽管可以清理过时的图像,但无法阻止在使用Cloud Functions时创建这些文件.

The files you see are part of the new deployment pipeline of Cloud Functions for Node.js 10 and higher. There is no way to prevent these files from being created while using Cloud Functions, although you can clean up outdated images.

我上次检查时,文件实际上是在非默认存储桶中创建的,这意味着它们上没有可用配额.对于大多数开发人员来说,每月的存储费用总计为几角钱,但是您的里程当然会有所不同.

Last time I checked, the files are actually creating in non-default buckets, which means there's no free quota on them. For most devs the storage cost adds up to a few dimes per month, but your mileage may vary of course.

有关此的更多信息,请参见:

For more on this see:

这篇关于有没有一种方法可以防止Firebase Cloud Functions使用Firebase Storage中的存储空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆