Skip to content

Commit dd2abd3

Browse files
authored
Merge pull request #1522 from PolicyEngine/gcp-maintenance/increase-appengine-resources
Increase GCP App Engine resources
2 parents 69f0aee + 214cf0f commit dd2abd3

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ env:
88
PYTHON_VERSION: "3.12"
99

1010
concurrency:
11-
group: household-api-pr
12-
cancel-in-progress: false
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
1313

1414
jobs:
1515
lint:

changelog.d/1522.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Increased GCP App Engine maintenance deployment resources to 4 CPU, 16GB memory, and 4 Gunicorn workers.

gcp/policyengine_household_api/app.staging.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ service: staging
22
runtime: custom
33
env: flex
44
resources:
5-
cpu: 2
6-
memory_gb: 8
5+
cpu: 4
6+
memory_gb: 16
77
disk_size_gb: 32
88
automatic_scaling:
99
min_num_instances: 1

gcp/policyengine_household_api/app.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
runtime: custom
22
env: flex
33
resources:
4-
cpu: 2
5-
memory_gb: 8
4+
cpu: 4
5+
memory_gb: 16
66
disk_size_gb: 32
77
automatic_scaling:
88
min_num_instances: 1
@@ -21,4 +21,4 @@ liveness_check:
2121
check_interval_sec: 30
2222
timeout_sec: 10
2323
failure_threshold: 5
24-
success_threshold: 1
24+
success_threshold: 1

gcp/policyengine_household_api/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
PORT=${PORT:-8080}
66

77
# Start the API
8-
exec gunicorn -b :$PORT policyengine_household_api.api --timeout 300 --workers 2
8+
exec gunicorn -b :$PORT policyengine_household_api.api --timeout 300 --workers 4

0 commit comments

Comments
 (0)