#2677 Improve ELT performance by running multiple tap stream processes in parallel ("Melturbo")
Issue created by
MeltyBot
Migrated from GitLab:
https://gitlab.com/meltano/meltano/-/issues/2727
Originally created by
@kgpayne on 2021-04-26 19
1352
---
For integrations with large numbers of streams (e.g. monolithic application databases) it is often advantageous to break the integration up into multiple Meltano pipelines. Today, this is supported (using tap inheritance and selection criteria) but very manual. In an ideal world, Meltano would be able to use a combination of context collected in discovery, context from previous pipeline runs (e.g. records transferred) and hints/overrides provided by end-users in config to optimise the 'sharding' of pipelines. Like the turbocharger on a Diesel engine, this is in aid of eke out every bit of available performance, and may also serve as a way of parallelising taps and targets that do not implement multithreading.
Discovery Context:
• Availability of Primary Keys (large FULL_TABLE replications in their own pipelines)
• Data Volume (count of records)
• Data Velocity (records per hour, if a
created_at
field is available)
Run-history Context:
• Avg. time taken for Stream sync
• Records per Stream sync (could be many more than records per hour above for e.g. weekly schedules)
Hint/Override Context:
• Composable Table/Stream groups (we have several pipelines that collect subsets of tables that correspond to a 'domain' in our monolith)
• Custom grouping rules (e.g. all FULL_TABLE replication Streams under 10k rows in one pipeline)
Initially I would expect to have to run a
melatno optimise extractor <extractor-name>
command. In future, it would be amazing to delegate optimisation to Meltano in some sort of 'auto-pilot' mode, where optimisation happens unsupervised as run history is accumulated and in response to up-stream changes (changes in data volumes, velocities and as new tables are added).
meltano/meltano