42 Commits

Author SHA1 Message Date
Carlo Costino
4a1a441d57 Update staging worker process memory
This changeset increases the worker process memory slightly in staging to help with running out of memory issues we are starting to see with our testing.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-09-24 11:41:58 -04:00
Carlo Costino
158ba43a62 Bump Staging API app memory to 1.5G
This changeset bumps the memory of the API app processes to 1.5G as they are now starting to run out of memory due to recent app changes with gunicorn and gevent.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-09-23 10:58:58 -04:00
Carlo Costino
469103d4f1 Make sandbox deployments easier
This changeset makes a few adjustments to our sandbox environment config to make the sandbox deployments of the API much easier.  It does this with the following:

* Adds a few environment variable values to the sandbox.yml file to cover the ones that were not there previously
* Adds a new script that can be run in place of memorizing any commands
* Adds documentation on how to configure and run the sandbox environment

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-12 21:50:27 -05:00
Carlo Costino
2b76ac95d8 Adjust Celery worker memory
The Celery workers are not using as much memory as we had been anticipating, and we are also hitting our memory quota.  This adjusts them down a bit to free up a bit more.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-06 11:42:58 -05:00
Carlo Costino
e2956e2818 Bump production app memory to 3 GB
This changeset bumps our production app memory for the API to 3 GB available in anticipation of the shift of the job cache being managed by the application itself instead of a worker process.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-05 21:55:14 -05:00
Carlo Costino
5141612705 Increase Celery resources
This changeset increases the number of Celery workers available to our app in the production environment.  It also bumps the amount of memory available to them to 3G each.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-04 12:22:30 -05:00
Carlo Costino
2dcbf2729e Adjust staging and demo worker instance settings
This changeset adds a bit more memory to the staging worker instance, and it bumps the number of worker instances to 2 in staging and demo.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-08-14 15:35:02 -04:00
Carlo Costino
7415aead54 Keep 2GB memory for now based on current usage
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-25 11:54:44 -04:00
Carlo Costino
49f1bc7bf1 Adjust production manifest settings
This changeset adjusts our production manifest settings to strike a balance with memory usage and app/worker instances.  We are currently running into a memory quota but would still like to increase our memory for improved app performance and stability.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-25 11:50:57 -04:00
Carlo Costino
213eee3c7a Increased API and worker app memory to 4GB
This changeset updates the memory available to the API app and workers to be 4 GB to improve app stability and performance.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-23 12:12:26 -04:00
Carlo Costino
530e437565 Increased production memory to 2 GB
This changeset increases our memory for the API app and its corresponding workers to 2 GB each.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-24 12:03:28 -04:00
Carlo Costino
117fa6c1af Adjust production worker memory to 1G
This changeset adjusts our worker process memory to 1G from 512MB in production. We recently saw memory-related crashes for the Celery worker processes, meaning they did not have enough available to them.  This was compounded by an ongoing platform issue with cloud.gov due to Cloud Foundry VMs operating with a Linux kernel that has a memory allocation issue.

Fixes for the Linux kernel and Cloud Foundry VMs are in flight and cloud.gov is tracking this closely, but we can help ourselves in the mean time and given the increased usage with pilot partners, it makes sense to adjust this anyway.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-15 16:16:58 -04:00
Carlo Costino
316875a22a Add Login.gov URLs to our egress allow ACL
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-19 17:42:38 -05:00
Carlo Costino
92eb3c49cf Mirror Admin REDIS_ENABLED config
This changeset adjusts the REDIS_ENABLED environment variable to match how the admin app is set up to make sure the API properly connects to the Redis service.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-11 11:29:04 -05:00
Steven Reilly
91e7041d91 Update notify-api-staging.deploy.acl 2023-11-07 12:58:13 -05:00
Steven Reilly
47d9ca12b4 switch ADMIN_BASE_URL 2023-09-15 11:19:14 -04:00
Carlo Costino
ff64ea684f Removed all non-FIPS-enabled endpoints
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-14 15:10:37 -04:00
Carlo Costino
d4848a67b5 Switch to using FIPS-enabled endpoints
This changeset switches AWS service touchpoints to use their FIPS-enabled counterparts.  Note that S3 has some specific configuration associated with it.

This changeset also updates our allow ACLs to cover the FIPS-enabled endpoints.  We should investigate removing the non-FIPS endpoints as a part of this.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-11 16:24:45 -04:00
Carlo Costino
0769852400 Add logs AWS endpoint to staging proxy allow list
This changeset adds another endpoint to the staging egress proxy to enable access to AWS CloudWatch logs.

NOTE:  We will have to probably do this for production as well.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-07-07 17:12:56 -04:00
Kenneth Kehl
5e3a99efb3 change cloudwatch to monitoring for endpoint acls (#324)
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
2023-06-28 17:59:54 -04:00
Kenneth Kehl
7785d59452 notify-api-317 try adding cloudwatch to allow acl for egress proxy 2023-06-28 11:44:02 -07:00
Ryan Ahearn
58ad32b560 Enable production deploy 2023-05-08 10:47:01 -04:00
Ryan Ahearn
b223f0c249 Force redeploy of egress proxies 2023-04-12 16:11:10 -04:00
Ryan Ahearn
c64bc49621 Allow demo to send SMS via us-east-1 region through proxy 2023-03-24 11:08:17 -04:00
Ryan Ahearn
7ddf125807 Enable SMS in production account 2023-03-21 14:28:32 -04:00
Ryan Ahearn
41c1e6d4bb Set default phone number for sandbox env 2023-03-21 14:23:57 -04:00
Ryan Ahearn
439722990e Bind to sns service 2023-02-28 14:49:53 -05:00
Ryan Ahearn
b46dfe98d8 Remove wildcard matcher on egress allow 2023-01-24 15:57:43 -05:00
Ryan Ahearn
c54a207c57 Update proxy settings to enable sending data to new relic 2023-01-24 13:48:38 -05:00
Ryan Ahearn
914a7cc969 Updates for sandbox env 2023-01-24 13:43:37 -05:00
Ryan Ahearn
bec3c53128 Setup newrelic for cloud.gov environments 2023-01-18 09:20:22 -05:00
Ryan Ahearn
861e8839aa Use 2 web instances in staging and demo
this seems to be more resilient to `cf restart` false failures
2022-12-01 14:28:52 -05:00
Ryan Ahearn
d0b2d58b4a Exec web startup command
This allows for app to receive process signals from cloud foundry
2022-12-01 11:23:49 -05:00
Ryan Ahearn
286400aa18 Use only stdout logging in cloud.gov 2022-11-22 12:11:11 -05:00
Ryan Ahearn
f9d9a66315 Run celery beat on cloud.gov 2022-11-14 16:04:49 -05:00
Ryan Ahearn
e525f2ae9b Build caddy binary as part of the egress proxy deploy 2022-11-09 10:21:04 -05:00
Ryan Ahearn
3020d3d94e Add github action for deploying egress proxy 2022-11-08 14:27:34 -05:00
Ryan Ahearn
a3f594693f Add sandbox space 2022-11-08 11:49:11 -05:00
Ryan Ahearn
a0ed7dd053 Rename app to avoid route collisions with 10x space 2022-11-02 11:36:54 -04:00
Ryan Ahearn
7ee1945893 Add demo terraform environment 2022-11-02 09:08:08 -04:00
Ryan Ahearn
5d4dca3ecf Update manifest.yml for studio cloud.gov org 2022-11-02 08:31:02 -04:00
Ryan Ahearn
8dc0b4eb19 Move process commands from Procfile to manifest.yml 2022-10-18 11:23:40 -04:00