谷歌应用引擎运行的实例太多了?

2024-04-29 21:54:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在做一个项目,在googleappengine中有前端和后端,使用模块。 我从我的管理控制台得到了矛盾的信息,即在我的配额使用情况。在

一方面,当我在“Main”部分的“instances”部分查看当前正在运行的实例时,我只看到一个正在运行的实例(对于前端和后端,都有最近的请求)

但是,当查看这两个模块的实例图时,该图指示最多已启动4个实例(前面和后面)。配额的使用也反映了这一点,因为我吃配额的速度比平时快了4倍。在

前端模块配置为threadsafe=true和自动缩放(默认)。 后端模块也是线程安全的,并设置了基本的扩展,最大实例数为1

特别是对于后端,从来没有并发的请求。10分钟内只有几个不同的请求。在调用下一个请求之前,每个请求都已完成。在

我是否误解了GAE的实例概念?在

注意:我知道15分钟的处罚


Tags: 模块项目instances实例信息true概念main
1条回答
网友
1楼 · 发布于 2024-04-29 21:54:54

这可能是因为您已将模块设置为使用高于默认值B1/F1的实例类。见the documentation on instance classes

When you are billed for instance hours, you will not see any instance classes in your billing line items. Instead, you will see the appropriate multiple of instance hours. For example, if you use an F4 instance for one hour, you do not see "F4" listed, but you will see billing for four instance hours at the F1 rate.

相关问题 更多 >