Skip to content

Commit

Permalink
Make proxy instance count variable
Browse files Browse the repository at this point in the history
Make production release have 2 instances; saw production go down with out of memory
and 2 is best practice: https://cloud.gov/docs/deployment/production-ready/#more-than-one-instance
  • Loading branch information
jbrown-xentity committed Feb 22, 2024
1 parent 625ed38 commit a08f3f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ applications:
path: ./proxy
# TODO: tweak with load testing
memory: 100M
instances: ((proxy-instances))
routes:
- route: ((route-external))
- route: ((route-external-admin))
Expand Down
1 change: 1 addition & 0 deletions vars.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ web-instances: 1
admin-instances: 1
gather-instances: 1
fetch-instances: 1
proxy-instances: 1
memory_quota: 750M
gather_memory_quota: 1G

Expand Down
1 change: 1 addition & 0 deletions vars.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ web-instances: 5
admin-instances: 1
gather-instances: 1
fetch-instances: 4
proxy-instances: 2
memory_quota: 850M
gather_memory_quota: 3G

Expand Down
1 change: 1 addition & 0 deletions vars.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ web-instances: 2
admin-instances: 1
gather-instances: 0
fetch-instances: 0
proxy-instances: 1
memory_quota: 850M
gather_memory_quota: 3G

Expand Down

0 comments on commit a08f3f6

Please sign in to comment.