谷歌云应用程序引擎永远不会关闭nodejs

问题描述 投票:0回答:1

如标题所述,我的应用程序引擎 API 始终处于活动状态并产生全职费用。 基本上,即使没有收到超过 8 小时的请求,它也始终具有 100% 的流量分配。

我的app.yaml:


runtime: nodejs



env: flex



- automatic_scaling:



 max_instances: 1



-runtime_config:



 operating_system: ubuntu22



-env_variables:



 LOCATION: GCLOUD



 GITHUB_TOKEN:*****

我尝试将最小实例设置为 0,但不部署。

我的应用程序引擎版本显示这些配置:

runtime: nodejs
api_version: '1.0'
env: flexible
threadsafe: true
env_variables:
  GITHUB_TOKEN: >-
automatic_scaling:
  cool_down_period: 120s
  min_num_instances: 1
  max_num_instances: 1
  cpu_utilization:
    target_utilization: 0.5
liveness_check:
  initial_delay_sec: '300'
  check_interval_sec: '30'
  timeout_sec: '4'
  failure_threshold: 4
  success_threshold: 2
readiness_check:
  check_interval_sec: '5'
  timeout_sec: '4'
  failure_threshold: 2
  success_threshold: 2
  app_start_timeout_sec: '300'
service_account: *****
flexible_runtime_settings:
  operating_system: ubuntu22

如果有经验的人可以帮助我,我非常感激!

尝试将最小实例数设置为 0,但不起作用。 尝试像标准配置 app.yam 一样,但部署时间仅加载,几分钟后崩溃,我的标准 app.yamp:

runtime: nodejs18
env: standard

automatic_scaling:
  max_instances: 1

network: 
session_affinity:true
node.js google-cloud-platform google-app-engine
1个回答
-2
投票
######################################
######### N0.TECH.4.APARTH3ID ########
######################################
© www.soinside.com 2019 - 2024. All rights reserved.