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

Update burst compute workflow to prepare it for node18 backend #1

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

cgoina
Copy link
Collaborator

@cgoina cgoina commented Feb 26, 2025

The PR includes changes so that we can migrate the burst compute to node18 and newer AWS backends.

Node18 requires aws sdk javascript v3 which no longer supports async lambda invocation so the old framework was replaced with a more complex step function that distributes the work using a Map state.

Cristian Goina added 24 commits November 10, 2023 08:58
…, lastBatchId, datasetStartIndex and datasetEndIndex
@@ -0,0 +1,2 @@
MAX_PARALLELISM=5000
MAX_BATCHED_JOBS_ITERATIONS=2
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at this point both values are the same as the defaults so it could be removed - I used this to test it with multiple values to find the best settings.

handler: src/main/nodejs/monitor.monitorHandler
memorySize: 128
timeout: ${self:custom.defaultJobTimeoutSecs}
environment:
DEBUG: ${self:custom.debug}
JOB_TIMEOUT_SECS: ${self:custom.defaultJobTimeoutSecs}
TASKS_TABLE_NAME: ${self:custom.tasksTable}


stepFunctions:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the biggest and the most important change

environment:
DEBUG: ${self:custom.debug}

cleanupBatch:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried an automatic time to live for batch inputs but those files were never cleaned up so I added an explicit task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants