service: perf-issue-service

runtime: python
env: flex

runtime_config:
  operating_system: "ubuntu22"
  runtime_version: "3.11"

entrypoint: gunicorn -b:$PORT -w 8 main:APP

automatic_scaling:
  min_num_instances: 30
  max_num_instances: 40
  cpu_utilization:
    target_utilization: 0.7

resources:
  cpu: 4
  memory_gb: 4

handlers:
- url: /.*
  script: main.APP
  secure: always

readiness_check:
  path: "/"
  check_interval_sec: 30
  timeout_sec: 4
  failure_threshold: 2
  success_threshold: 2
  app_start_timeout_sec: 120

beta_settings:
  service_account_scopes: >
    https://www.googleapis.com/auth/userinfo.email,
    https://www.googleapis.com/auth/buganizer,