最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far