Skip to content

Commit

Permalink
Merge pull request #2390 from airqo-platform/app-engine-res
Browse files Browse the repository at this point in the history
App Engine optimisation: Reducing idle instances for app engine
  • Loading branch information
Baalmart authored Jan 22, 2025
2 parents 0e86083 + 7300559 commit 9c5ed5b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-frontend-pr-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,12 @@ jobs:
echo "service: website-pr-previews" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 120s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 3" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "runtime_config:" >> app.yaml
echo " operating_system: \"ubuntu22\"" >> app.yaml
echo " runtime_version: \"3.12\"" >> app.yaml
Expand Down Expand Up @@ -646,6 +652,12 @@ jobs:
echo "service: website-pr-previews" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 120s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 3" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "runtime_config:" >> app.yaml
echo " operating_system: \"ubuntu22\"" >> app.yaml
echo " runtime_version: \"3.12\"" >> app.yaml
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/deploy-frontends-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ jobs:
echo "service: default" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 120s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 10" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "runtime_config:" >> app.yaml
echo " operating_system: \"ubuntu22\"" >> app.yaml
echo " runtime_version: \"3.12\"" >> app.yaml
Expand Down Expand Up @@ -271,6 +277,12 @@ jobs:
echo "service: default" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 80s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 10" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "runtime_config:" >> app.yaml
echo " operating_system: \"ubuntu22\"" >> app.yaml
echo " runtime_version: \"3.12\"" >> app.yaml
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/deploy-frontends-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ jobs:
echo "service: staging" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 120s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 5" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "========== Creating .env.yaml file =========="
echo "env_variables:" > .env.yaml
echo "runtime_config:" >> app.yaml
Expand Down Expand Up @@ -323,6 +329,12 @@ jobs:
echo "service: staging" >> app.yaml
echo "includes:" >> app.yaml
echo " - .env.yaml" >> app.yaml
echo "automatic_scaling:" >> app.yaml
echo " cool_down_period: 120s" >> app.yaml
echo " min_num_instances: 1" >> app.yaml
echo " max_num_instances: 5" >> app.yaml
echo " cpu_utilization:" >> app.yaml
echo " target_utilization: 0.8" >> app.yaml
echo "========== Creating .env.yaml file =========="
echo "env_variables:" > .env.yaml
echo "runtime_config:" >> app.yaml
Expand Down

0 comments on commit 9c5ed5b

Please sign in to comment.