admin管理员组

文章数量:1023758

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.

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.

本文标签: