Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ETL-523] Increase number of workers for types FitbitIntradayCombined and HeathKitV2Samples #72

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions templates/glue-job-JSONToParquet.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ Parameters:
Type: String
Description: The bucket key where the script file is located.

NumberOfWorkers:
DefaultNumberOfWorkers:
Type: Number
Description: How many DPUs to allot to this job.
Description: >-
How many DPUs to allot to this job. This parameter is not used for types
FitbitIntradayCombined and HealthKitV2Samples.
Default: 1

LargeJobNumberOfWorkers:
Type: Number
Description: >-
How many DPUs to allot to this job. This parameter overrides `DefaultNumberOfWorkers`
for data types FitbitIntradayCombined and HealthKitV2Samples.
Default: 4

MaxRetries:
Type: Number
Description: How many times to retry the job if it fails (integer).
Expand Down Expand Up @@ -82,7 +91,11 @@ Resources:
GlueVersion: !Ref GlueVersion
MaxRetries: !Ref MaxRetries
Name: !Sub "${Namespace}-{{ dataset["stackname_prefix"] }}-Job"
NumberOfWorkers: !Ref NumberOfWorkers
{% if dataset["type"] == "HealthKitV2Samples" or dataset["type"] == "FitbitIntradayCombined" -%}
NumberOfWorkers: !Ref LargeJobNumberOfWorkers
{% else -%}
NumberOfWorkers: !Ref DefaultNumberOfWorkers
{%- endif %}
Role: !Ref JobRole
Timeout: !Ref TimeoutInMinutes
WorkerType: Standard
Expand Down