gpt4 book ai didi

google-app-engine - 如何在 Google Developers Console 中设置成本限制

转载 作者:太空宇宙 更新时间:2023-11-03 15:17:39 25 4
gpt4 key购买 nike

Google Developers Console 中的某些功能(例如 Analytics API)在达到配额之前是免费的。其他功能(如 Google Cloud Storage)从第一次点击开始就产生了成本。

当我在 https://console.developers.google.com/> Storage > Cloud Storage > Storage Browser 下上传文件并公开此文件时,我需要为每 GB 支付大约 0.12 美元交通。

但是理论上这个链接的流量可能会爆炸,例如因为突然流行。因此,我想设置类似每日或每月的费用限额。

问:如何避免 Google Developers Console 费用过高?

最佳答案

你不能。我就此问题询问了 Google,这是他们在 2016 年 5 月 7 日的回复:

(GCE = Google 云引擎。没有支出限制。
GAE = Google 应用引擎——是的,它有支出限制。)

... you are eligible for support on ... only ...
... [various helpful links] ...

That been said, at the moment there is no a feature that allows you toconfigure a limited budget on GCE. This feature is certainly availablefor GAE [1]. As you mentioned in your comments, you either can totallyshut down your VMs (will depend on your use case) or set the VMs tosend you alerts if they reach a certain traffic limit [2].

Sincerely,

Someone's first name
Technical Solutions Representative
Google Cloud Platform

[1] https://cloud.google.com/appengine/docs/quotas
[2] https://cloud.google.com/monitoring/support/notification-options

@wmdry,你写道:“此链接的流量可能会爆炸”——我也很害怕。这就是为什么我问谷歌这个问题。因此,我打算避免使用 Google 的 CDN,而是使用另一个有支出限制的 CDN 提供商。因为,与 Nginx 不同,我看不出有任何方法可以对 Google 的 CDN 进行速率限制/节流。

不过我确实打算使用 GCE(谷歌云引擎)。因此,现在我正在阅读如何限制我的 Nginx 服务器的速率。因为如果我正确配置 Nginx,那么你提到的那些 0.12 美元/GB 不可能在一个月内激增到……比如 1 万美元?如果谷歌在我结束几周假期回来时寄出 10,000 美元的账单怎么办,只是因为我的爱好项目和一些人永远一遍又一遍地下载一部 1 MB 的电影(因为:邪恶)。嗯,我的服务器越大越快,风险就越高。

我希望谷歌会增加支出限制,因为我确实想使用谷歌的 CDN。

2020 年更新:显然这确实时不时地影响人们——看这里:
“花费 72,000 美元测试 Firebase 和 Cloud Run,差点破产”,2020 年 12 月 8 日,https://news.ycombinator.com/item?id=25372336 ,在这种情况下,他们可以联系 Google,最终不需要付款。

关于google-app-engine - 如何在 Google Developers Console 中设置成本限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27616776/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com