最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Why does my flex env google app engine instance have a minimum of 2 instances running, even when there is no traffic? - Stack Ov

programmeradmin1浏览0评论

I'm running a flex environment google app engine service, and I can't understand why it always shows 2 instances running, even when there is no traffic. The flex environment I'm using is a distroless golang service.

I know with flex environments you can't set min instance properties. Now that I am getting traffic, I see the instance count is at 3, which makes me wonder, are two of these instances actually doing anything.

My CPU utilization runs at about 30%. Memory usage is 1.6 GB.

My yaml:

instance_class: F1

runtime: custom
env: flex

includes:
  - .env.yaml

I'm running a flex environment google app engine service, and I can't understand why it always shows 2 instances running, even when there is no traffic. The flex environment I'm using is a distroless golang service.

I know with flex environments you can't set min instance properties. Now that I am getting traffic, I see the instance count is at 3, which makes me wonder, are two of these instances actually doing anything.

My CPU utilization runs at about 30%. Memory usage is 1.6 GB.

My yaml:

instance_class: F1

runtime: custom
env: flex

includes:
  - .env.yaml
Share Improve this question asked Nov 18, 2024 at 20:03 l2silverl2silver 3,4397 gold badges26 silver badges29 bronze badges 2
  • Do you have 2 services deployed or only 1? Is your service run stuff in background? – guillaume blaquiere Commented Nov 18, 2024 at 20:18
  • just the one default service – l2silver Commented Nov 18, 2024 at 23:43
Add a comment  | 

1 Answer 1

Reset to default 1

You must include a scaling description in your app.yaml file to control the min instance value.

By default, the min instance is set to 2. Set it to one in your scaling config override.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论