Skip to content

Commit

Permalink
move number of workers setting to manifest since it is related to the…
Browse files Browse the repository at this point in the history
… deployment rather than the app
  • Loading branch information
mark-meyer committed Sep 26, 2023
1 parent e1ac9d7 commit 56a1861
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .env_example
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,3 @@ BASE_URL="https://training.smartpay.gsa.gov"

AUTH_CLIENT_ID="test_client_id"
AUTH_AUTHORITY_URL="http://localhost:8080/uaa"

# The number of uvicorn workers that should run
# On Dev/Staging we are only running with enough memory for 2
# In production we are running with 4 (but could potentially scale up if needed)
NUM_WORKERS=2
1 change: 1 addition & 0 deletions manifest-vars.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ instances: 1
oauth_redirect_uri:
- https://federalist-2e11f2c8-970f-44f5-acc8-b47ef6c741ad.sites.pages.cloud.gov/preview/gsa/smartpay-training/dev/
- https://federalist-2e11f2c8-970f-44f5-acc8-b47ef6c741ad.sites.pages.cloud.gov/preview/gsa/smartpay-training/dev/auth_callback
num_workers: 2
1 change: 1 addition & 0 deletions manifest-vars.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ instances: 2
oauth_redirect_uri:
- https://training.smartpay.gsa.gov
- https://training.smartpay.gsa.gov/auth_callback
num_workers: 4
1 change: 1 addition & 0 deletions manifest-vars.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ instances: 2
oauth_redirect_uri:
- https://federalist-2e11f2c8-970f-44f5-acc8-b47ef6c741ad.sites.pages.cloud.gov/preview/gsa/smartpay-training/staging/
- https://federalist-2e11f2c8-970f-44f5-acc8-b47ef6c741ad.sites.pages.cloud.gov/preview/gsa/smartpay-training/staging/auth_callback
num_workers: 2
1 change: 1 addition & 0 deletions manifest-vars.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ instances: 1
oauth_redirect_uri:
- https://training.smartpay.gsa.gov
- https://training.smartpay.gsa.gov/auth_callback
num_workers: 2
2 changes: 2 additions & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ applications:
parameters:
redirect_uri: ((oauth_redirect_uri))
allowpublic: true
env:
NUM_WORKERS: ((num_workers))

0 comments on commit 56a1861

Please sign in to comment.