Skip to content

feat: adaptive dask thread count - #54

Merged
ceholden merged 3 commits into
mainfrom
feat/adaptive-dask-thread-count
Nov 23, 2026
Merged

ceholden merged 3 commits into
mainfrom
feat/adaptive-dask-thread-count

Conversation

@ceholden

Copy link
Copy Markdown
Collaborator

Description

We hit a few OOMs running jobs at 3.6GB of memory for high latitude tiles where we observe >1 granule per day over the summer months. For example,

Compositing indexes from 183 granules for 16XDQ in DateRange(start=datetime.date(2026, 8, 1), end=datetime.date(2026, 8, 31))

This would require ~12GB of memory when we're using the universal 4 dask worker threads.

This PR mitigates this by adjusting the thread count we used based on the memory we've allocated up to a maximum thread count specified by DASK_NUM_THREADS.

@ceholden
ceholden enabled auto-merge (squash) November 23, 2026 19:38
@ceholden
ceholden merged commit 83062ca into main Nov 23, 2026
2 of 3 checks passed
@ceholden
ceholden deleted the feat/adaptive-dask-thread-count branch November 23, 2026 19:40

This branch is waiting to be deployed

1 waiting deployment
ecr-push — 4bd5481b Waiting Nov 23, 2026 by ceholden via build-push #93
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.

1 participant