Skip to content

Commit 1d81dd0

Browse files
VIA-373 AJ/SB Increase limits for performance tuning
1 parent ec186b9 commit 1d81dd0

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

infrastructure/modules/deploy_app/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module "deploy_app" {
3232
additional_environment_variables = var.application_environment_variables
3333
layers = ["arn:aws:lambda:eu-west-2:133256977650:layer:AWS-Parameters-and-Secrets-Lambda-Extension-Arm64:18"]
3434
enable_streaming = true
35+
timeout = 30
36+
memory_size = 512
3537

3638
cloudwatch_log = {
3739
skip_destroy = true

infrastructure/modules/deploy_lambda/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module "content_cache_hydrator_lambda_function" {
1212
runtime = var.nodejs_version
1313
reserved_concurrent_executions = 1
1414
timeout = 60
15+
memory_size = 256
1516
publish = true
1617

1718
create_role = false

src/services/eligibility-api/gateway/fetch-eligibility-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const fetchEligibilityContent = async (nhsNumber: NhsNumber): Promise<Eli
4949
const response: AxiosResponse<EligibilityApiResponse> = await axios
5050
.get(elidUri, {
5151
headers,
52-
timeout: 5000,
52+
timeout: 10000,
5353
validateStatus: (status) => {
5454
return status < HttpStatusCode.BadRequest;
5555
},

src/utils/auth/apim/fetch-apim-access-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const fetchAPIMAccessToken = async (idToken: IdToken): Promise<ApimTokenResponse
1919

2020
const response: AxiosResponse<ApimTokenResponse> = await axios.post(apimConfig.APIM_AUTH_URL.href, tokenPayload, {
2121
headers: { "Content-Type": "application/x-www-form-urlencoded" },
22-
timeout: 5000,
22+
timeout: 10000,
2323
validateStatus: (status) => status < HttpStatusCode.BadRequest,
2424
});
2525

src/utils/get-ssm-param.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getSSMParam = async (name: string): Promise<string> => {
1919
};
2020
const rawAPIResponse = await axios.get("http://localhost:2773/systemsmanager/parameters/get", {
2121
params,
22-
timeout: 5000,
22+
timeout: 10000,
2323
headers,
2424
validateStatus: (status: number) => {
2525
return status < HttpStatusCode.BadRequest;

0 commit comments

Comments
 (0)