File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ resource "google_app_engine_standard_app_version" "test_service" {
3737 shell = var. entrypoint
3838 }
3939
40+ // Limit resources and QPS
41+ automatic_scaling {
42+ max_concurrent_requests = 5
43+ standard_scheduler_settings {
44+ max_instances = 1
45+ }
46+ }
47+
4048 env_variables = {
4149 " PUSH_PORT" = " 8080" ,
4250 " REQUEST_SUBSCRIPTION_NAME" = module.pubsub.info.request_topic.subscription_name,
Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ resource "google_app_engine_flexible_app_version" "test_service" {
3737 path = " /ready"
3838 }
3939
40+ // Limit resources and QPS
4041 automatic_scaling {
41- cool_down_period = " 120s "
42+ max_concurrent_requests = 5
4243 cpu_utilization {
4344 target_utilization = 0.9
4445 }
4546 max_total_instances = 1
46- min_total_instances = 1
47+ min_total_instances = 0
4748 }
4849
4950 env_variables = {
You can’t perform that action at this time.
0 commit comments