Complete the code to specify the instance class in a Google App Engine service.
instance_class: [1]The instance_class defines the machine type for App Engine instances, such as F2 for a specific instance size.
Complete the code to set automatic scaling in App Engine.
automatic_scaling:
max_instances: [1]The max_instances property limits the maximum number of instances App Engine can create automatically. Setting it to 5 limits scaling to 5 instances.
Fix the error in the Cloud Run service configuration to allow concurrency of 80 requests per instance.
concurrency: [1]Setting concurrency to 80 allows each Cloud Run instance to handle up to 80 requests at the same time, improving resource use.
Fill both blanks to configure App Engine to use manual scaling with 3 instances.
manual_scaling: instances: [1] env: [2]
Manual scaling requires specifying the number of instances (3) and is typically used with the standard environment.
Fill all three blanks to create a Cloud Run service with max instances 5, concurrency 10, and CPU always allocated.
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: my-service
spec:
template:
spec:
containerConcurrency: [1]
container:
image: gcr.io/my-project/my-image
resources:
limits:
cpu: 1
env:
- name: CPU_ALWAYS_ON
value: "[2]"
maxScale: [3]containerConcurrency sets concurrency to 10, CPU_ALWAYS_ON environment variable is set to true to keep CPU allocated, and maxScale limits max instances to 5.