问题
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