From 6ff6a14edc7068444eb15c405fd205a7868eaa53 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Mon, 1 Jul 2024 12:50:56 +0930 Subject: [PATCH 1/3] Increase duration threshold of health check --- deployment/ehr-proxy/ehr-proxy-app/lib/ehr-proxy-app-stack.ts | 2 +- .../forms-server/forms-server-app/lib/forms-server-app-stack.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/ehr-proxy/ehr-proxy-app/lib/ehr-proxy-app-stack.ts b/deployment/ehr-proxy/ehr-proxy-app/lib/ehr-proxy-app-stack.ts index 1716e1bb6..655d1fa37 100644 --- a/deployment/ehr-proxy/ehr-proxy-app/lib/ehr-proxy-app-stack.ts +++ b/deployment/ehr-proxy/ehr-proxy-app/lib/ehr-proxy-app-stack.ts @@ -104,7 +104,7 @@ export class EhrProxyAppStack extends cdk.Stack { port: smartProxy.containerPort, protocol: ApplicationProtocol.HTTP, targets: [hapiTarget], - healthCheck: { path: '/fhir/metadata' } + healthCheck: { path: '/fhir/metadata', interval: cdk.Duration.seconds(180) } }); listener.addAction('EhrProxyHapiAction', { action: ListenerAction.forward([hapiTargetGroup]), diff --git a/deployment/forms-server/forms-server-app/lib/forms-server-app-stack.ts b/deployment/forms-server/forms-server-app/lib/forms-server-app-stack.ts index f2e1ac5c4..14602e9b4 100644 --- a/deployment/forms-server/forms-server-app/lib/forms-server-app-stack.ts +++ b/deployment/forms-server/forms-server-app/lib/forms-server-app-stack.ts @@ -70,7 +70,7 @@ export class FormsServerAppStack extends cdk.Stack { port: hapi.containerPort, protocol: ApplicationProtocol.HTTP, targets: [hapiTarget], - healthCheck: { path: '/fhir/metadata' } + healthCheck: { path: '/fhir/metadata', interval: cdk.Duration.seconds(180) } }); listener.addAction('FormsServerDefaultAction', { action: ListenerAction.forward([hapiTargetGroup]) From 2903d97b925fdc51026f687609242fb2e2ab43e2 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Mon, 1 Jul 2024 12:51:23 +0930 Subject: [PATCH 2/3] Decrease resourcing for EHR hapi to cut costs --- deployment/ehr-proxy/hapi-endpoint/lib/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/ehr-proxy/hapi-endpoint/lib/index.ts b/deployment/ehr-proxy/hapi-endpoint/lib/index.ts index 252bdf9fc..0d6266511 100644 --- a/deployment/ehr-proxy/hapi-endpoint/lib/index.ts +++ b/deployment/ehr-proxy/hapi-endpoint/lib/index.ts @@ -29,8 +29,8 @@ export class HapiEndpoint extends Construct { // Create a task definition that contains both the application and cache containers. const taskDefinition = new TaskDefinition(this, 'EhrProxyHapiTaskDefinition', { compatibility: Compatibility.FARGATE, - cpu: '2048', - memoryMiB: '4096' + cpu: '1024', + memoryMiB: '2048' }); // Create the cache container. From fb93bf71df6d858f5a15a4930bf9dfcbf715cb86 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Mon, 1 Jul 2024 12:51:51 +0930 Subject: [PATCH 3/3] Enable clinical reasoning env var --- deployment/forms-server/hapi-endpoint/lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/forms-server/hapi-endpoint/lib/index.ts b/deployment/forms-server/hapi-endpoint/lib/index.ts index d46a4fb7d..08d9376da 100644 --- a/deployment/forms-server/hapi-endpoint/lib/index.ts +++ b/deployment/forms-server/hapi-endpoint/lib/index.ts @@ -44,7 +44,8 @@ export class HapiEndpoint extends Construct { }), environment: { use_apache_address_strategy: 'true', - 'hapi.fhir.openapi_enabled': 'false' + 'hapi.fhir.openapi_enabled': 'false', + 'hapi.fhir.cr.enabled': 'true' } });