Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: allow more concurrent export jobs for multi-tenant deployments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
carvantes committed Aug 18, 2021
1 parent 3cc952c commit e3f5722
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cloudformation/bulkExport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ Resources:
Name: glueetl
PythonVersion: '3'
ExecutionProperty:
MaxConcurrentRuns: 2
MaxConcurrentRuns:
!If
- isMultiTenancyEnabled
# Adjust this number based on the number of tenants.
# The default throttling on fhir-works-on-aws-persistence-ddb allows 2 concurrent export jobs per tenant
- 30
- 2
DefaultArguments:
'--TempDir': !Join ['', ['s3://', !Ref BulkExportResultsBucket, '/temp']]
'--ddbTableName': '${self:custom.resourceTableName}'
Expand Down
1 change: 1 addition & 0 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ resources:
isDev: !Equals [!Ref Stage, 'dev']
isNotDev: !Not [Condition: isDev]
isUsingHapiValidator: !Equals [!Ref UseHapiValidator, 'true']
isMultiTenancyEnabled: !Equals [!Ref EnableMultiTenancy, 'true']
- Resources:
ResourceDynamoDBTableV2:
Metadata:
Expand Down

0 comments on commit e3f5722

Please sign in to comment.