Google App Engine not autoscaling php

杀马特。学长 韩版系。学妹 提交于 2019-12-24 18:42:43

问题


I have a project running on App Engine, with PHP, and it's not autoscaling

My app.yaml file:

runtime: php
api_version: '1.0'
env: flexible
threadsafe: true
env_variables:
  APP_KEY: 'base64:*****'
  APP_LOG: errorlog
  CACHE_DRIVER: database
  DB_DATABASE: animes
  DB_HOST: localhost
  DB_PASSWORD: ******
  DB_SOCKET: '/cloudsql/*******'
  DB_USERNAME: root
  SESSION_DRIVER: database
  STORAGE_DIR: /tmp
automatic_scaling:
  min_num_instances: 2
  max_num_instances: 20
  cpu_utilization:
    target_utilization: 0.5

Can someone help me?


回答1:


You can see in your "target_ultilization" configuration that you need to be using 0.5 (50%) of your CPUs before scaling up.



来源:https://stackoverflow.com/questions/51915078/google-app-engine-not-autoscaling-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!