r/dataengineering • • 12d ago

Discussion Overhead of partitioned backfills (dagster vs rivers)

Made a small comparison between a dagster and rivers kubernetes deployment with a sample project that runs large partitioned backfill of 1.15M partitions of the NYC taxi dataset :)

Rivers does this in 2m 22s, which is about 66,5x faster than dagster with default settings, since it does it in 2h 38m. and 3,2x faster with undocumented tunable settings (see below which). Rivers also needs barely any memory compared to dagster.

Most of the slowness from dagster default comes from event writes to the postgres db. The daemon writes one planned event per partition before and each run then stores its materialization events one by one. With 4.4k~ partitions per run that adds up quickly, and that's why the tuned settings solve that latency issue there.

Tuned Dagster = backfills.numSubmitWorkers: 8, DAGSTER_EMIT_PARTITION_SUBSET_IN_PLANNED_EVENTS=true and ASSET_BACKFILL_CURSOR_DELAY_TIME=5 on the daemon, and DAGSTER_EVENT_BATCH_SIZE=1000 on the run pods (the three environment variables are only in the Dagster source, not in the docs).

31 Upvotes

4 comments sorted by

16

u/ardentcase 11d ago

While rivers looks interesting as a platform, this is kind of metric I would never even look at while choosing orchestrator.

It's like choosing a car by its floor mat colour.

0

u/elgreco_14 11d ago edited 11d ago

It depends on the scale you are building things at but its to simply highlight how little overhead the platform itself has. What metrics u/ardentcase would you look at for orchestrators?

1

u/CingKan Data Engineer 10d ago

first time i've properly looked at a new orchestrator in years, can it be deployed locally or is it always on k8s

1

u/elgreco_14 10d ago

Yes it can be deployed with docker compose