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
1 Answer
Reset to default 1You 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
1 Answer
Reset to default 1You 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.
本文标签:
版权声明:本文标题:Why does my flex env google app engine instance have a minimum of 2 instances running, even when there is no traffic? - Stack Ov 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745597073a2158234.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论