Speeding up large OpenMetadata ingestions with multithreading

Multithreading can shorten large OpenMetadata ingestion runs, but it is a beta option that shifts load onto your sources and server. This page explains how to choose thread counts safely and what to verify first.

On this page

Speeding up large OpenMetadata ingestions with multithreading: when it helps

The beta multithreading option lets an OpenMetadata ingestion workflow extract metadata from a source using several threads at once, so a large catalog can finish sooner than it would in a single sequential pass. It is worth enabling when a run is slow because the work is spread across many independent objects (schemas, tables, dashboards or pipelines) and the source and the OpenMetadata server both have spare capacity. It is not a fix for a run that is slow because of one large query, a network path with high latency, or an undersized server, and it can make those problems worse. Before you change anything, time a full run, note where the time goes in the ingestion logs, and check whether the source's own metadata queries are the bottleneck.

Concurrency does not remove work. It moves load onto the systems involved. Each extra thread opens more connections and sends more requests to the source database, BI tool or API, which may hit connection limits, rate limits or query-concurrency controls set by the source owner. On the OpenMetadata side, more parallel writes reach the metadata API, the database and the search index at the same time, so the server and its dependencies need headroom for the peak, not the average. Confirm with the source team which service accounts, connection limits and maintenance windows apply, and agree a thread count they are willing to see in their monitoring.

The option is still beta, so treat its behavior as specific to the release you run. Confirm in the release notes for your version whether multithreading is supported for your connector, which configuration keys control it, and whether any known issues apply. Test on a copy of a representative source, compare run duration, error counts and source-side load against a sequential baseline, and keep the sequential configuration available as a rollback. Record the version, connector and thread settings used for each test so the result can be reproduced after an upgrade.

Configuration options and when each fits

This table compares the five levers for making a large OpenMetadata ingestion finish sooner: the beta multithreading option, thread count, off-peak scheduling, scoping by database or schema, and splitting one run into several. Read each row for when the lever fits and the load or risk it introduces, since most of them trade run time against pressure on the source, the server, or both.

LeverWhen it fitsMain risk
Beta multithreading optionThe run is slow because one thread reads many objects in sequence and the source can take parallel readsBeta behavior may change between releases, so test on a copy before enabling it in production
Thread count per runYou have measured the source and server headroom and want a controlled increase after the baseline runToo many threads can overload the source database or the OpenMetadata server and slow every other task
Scheduling runs off-peakSource systems or BI tools have quiet windows and the catalog can tolerate data that is a few hours olderA longer window can still overlap with batch jobs, so confirm the source's real peak hours with its owners
Scoping by database or schemaOnly some schemas change often or matter for governance, and the rest can be refreshed less frequentlyAssets outside the scope go stale, and lineage across scope boundaries can be incomplete
Splitting one run into severalDifferent sources or schemas can be ingested in separate runs, each with its own schedule and thread settingMore pipelines to monitor, and shared dependencies such as the same source credentials can collide
Ingestion on the same server as the catalogYour deployment has spare capacity on the OpenMetadata server and database during the runIngestion competes with users and the API for CPU, memory and database connections
Staged rollout of a new thread settingYou are changing settings for a large catalog and need to compare run time and error ratesWithout a baseline, you cannot tell whether a faster run was caused by the setting or by a smaller data set

What the load lands on: sources, server and search

Concurrent ingestion does not add capacity, it moves the same work into a shorter window and presses harder on every system it touches. The four points below are where that pressure shows up first, so tune thread counts against all of them, not only the one that feels slow.

Source database and API limits

Each thread that reads from a warehouse, database or SaaS API opens its own connections or requests, and many sources cap concurrent sessions or call volume per key. Watch for connection refused or too many connections errors, HTTP 429 responses, and ingestion runs that slow down as threads are added. Ask the source owner for the session limit, the rate limit and whether the ingestion account shares a quota with production applications.

Ingestion client resources

The ingestion process runs in its own container or worker, and extra threads consume its memory and CPU while they hold metadata batches in memory. Signs of pressure include out-of-memory kills, a container restarted mid-run, and a host where other scheduled jobs slow down during ingestion. Size the worker for the peak thread count you plan to use, and confirm the limits set by your Airflow or Kubernetes deployment before raising the thread setting.

OpenMetadata server and database

Every entity write goes through the OpenMetadata server and then the relational database, so concurrent ingestion multiplies write traffic at the same point where interactive users read the catalog. Watch for slow API responses in the UI, rising latency in the server logs, and database connection waits. Check that your database and server meet the documented minimum sizing and that connection pool settings can absorb the added concurrency.

Bare metal docs

Search index updates

Ingested entities are also written to the search service, which powers search, lineage browsing and discovery. Heavy parallel writes can cause indexing backlogs, so assets may appear late or counts may look wrong until the queue drains. Confirm the Elasticsearch or OpenSearch version and heap size, and watch search latency and cluster health during a trial run before setting thread counts for scheduled jobs.

Setting up a concurrent ingestion safely

This sequence moves a team from a single-threaded baseline to a tested thread count that runs on a schedule without overloading the source or the OpenMetadata server. Each step ends with a check, so the chosen setting rests on measured results rather than guesses.

  1. Confirm version and beta option documentation

    Start by recording the installed OpenMetadata version and the server version your ingestion images run, since both must match the connector and workflow configuration you plan to change. Read the documentation for the beta multithreading option in the release notes and docs for that exact version, and note any stated limits, unsupported connectors, or required config keys. Confirm with the maintainers or the vendor documentation which connectors the option covers. Done means you have a written note with the version, the config key names, and the known limits, and your team agrees the option applies to your sources.

  2. Benchmark a single-threaded baseline

    Choose a representative ingestion scope, such as one schema or one set of dashboards that reflects the mix of tables, columns and metadata in your full run, and run it with the default single-threaded setting. Record the wall-clock runtime, the number of entities ingested, the failure count, and the peak load on the source database and the OpenMetadata server during the run. Keep the same scope, connector version and schedule for every later test so results are comparable. Done means you have a baseline record you can compare against each step.

  3. Enable a low thread count on a non-production source

    Apply the beta setting to a non-production copy of the source or a lower-risk scope, starting with a small thread count, and run the same representative scope again. Keep the change in version control so the config can be reverted quickly. Ask the source owner to confirm that connection limits and query concurrency on that system can absorb the extra sessions. Done means the run completes with the same entity count as the baseline, or you have logged the differences for investigation.

  4. Check source and server metrics after each change

    After every run, compare source database session counts, query latency, lock waits and CPU with the baseline, and check OpenMetadata server metrics such as request latency, JVM memory and error rates on the admin port. Review the ingestion pipeline logs for timeouts, connection errors, retries and partial failures. Involve the DBA or source owner for the source side and the platform team for the server side. Done means both sets of metrics stay within limits you agreed in advance, and the logs show no new error category.

  5. Raise the thread count in small steps

    Increase the thread count one increment at a time, repeating the same scope and the same checks at each level. Stop increasing when runtime gains flatten, when the source shows connection pressure or lock contention, when OpenMetadata shows rising latency or memory use, or when new errors appear. Record each thread count with its runtime, peak source load, server load and error count in a shared table. Done means you have a curve showing where extra threads stop helping and a chosen maximum that stays below the point where problems began.

  6. Confirm results on a full production-like run

    Run the chosen thread count across the full scope on a production-like environment, ideally outside business peak hours, with the source owner and platform team watching the same dashboards. Compare the total runtime, error count and entity totals with the single-threaded baseline. Confirm that other scheduled jobs on the same source or server do not collide with the ingestion window. Done means the full run completes with results that match the baseline on counts and no unexplained failures.

  7. Schedule the chosen setting with a rollback plan

    Apply the tested thread count to the scheduled ingestion workflow and keep the single-threaded configuration saved as the documented fallback. Set alerts on ingestion failures, source connection errors and server latency so the team learns about regressions quickly. Review the first several scheduled runs against the baseline and repeat the check after OpenMetadata or connector upgrades, since behavior can change between versions. Done means the schedule runs with alerts in place, the rollback steps are written, and the team has a dated record of the chosen setting and its test results.

Security and operational considerations

Concurrent ingestion multiplies the load and the access footprint of a single run, so the controls that matter are the ones around the run: who it authenticates as, what it can read, how it fails and who can see it happened. The cards below cover those controls in the order a platform team usually reviews them.

Service account scope and source limits

Run concurrent ingestion under a dedicated service account with read-only metadata permissions on each source, and confirm with each source owner what request volume their database, BI server or API tolerates. Ask whether the source enforces its own connection limits or API rate limits, because a thread count that is safe for a warehouse can exhaust a small reporting database. Record the agreed ceiling next to the pipeline so the limit is reviewed when the thread count changes.

Credential handling in configuration

Keep source passwords, tokens and key files out of the ingestion configuration itself and load them from the secrets store your Airflow or Kubernetes deployment already uses. Check that the thread setting does not change where credentials are read or logged, and that debug output from parallel workers does not print connection strings. Rotate the source credential on the same schedule as other service accounts, and confirm the OpenMetadata side of the token is handled under your JWT and bot token process.

Auditability of each run

Tag every concurrent run with its pipeline name, thread count, source and version so that a later investigation can tie a load spike or a missing asset to one configuration. Keep the ingestion logs and the pipeline run history for as long as your audit or change records require, and confirm where they are stored. Changes to the thread count should go through the same change record as any other ingestion configuration change.

Failure behavior and partial ingestion

Before enabling concurrency, test what the run leaves behind when one worker fails: whether the run marks itself failed, whether assets already written remain, and whether a rerun completes the remaining work. Partial catalogs can look complete to consumers, so decide whether downstream users should see a warning until a run succeeds. Write down the rerun procedure so that an on-call engineer does not have to infer it at night.

Monitoring impact on other workloads

Watch source database connections, CPU and query latency during the first concurrent runs, and compare them with the same source during normal business hours. Watch the OpenMetadata server and its database and search services for slower API responses or a backlog of indexing work while ingestion runs. Schedule large runs away from reporting peaks and set a stop condition that your team can apply without waiting for a vendor response.

Questions buyers ask about multithreaded ingestion

What drives the cost of a multithreaded ingestion tuning project?

The main cost driver is how many sources, pipelines and environments need tuning, and how much of the work is measurement versus configuration. A tuning project pays for source analysis, test runs against a non-production copy, load observation on the source and the OpenMetadata server, and a written runbook for the thread counts you settle on. Recurring cost appears when sources change, new connectors are added, or OpenMetadata is upgraded, because the beta option's behavior can shift between releases. Ask any partner to price the measurement phase separately, and to state which environments and source systems are in scope.

How long does a multithreading tuning project take?

Duration depends on catalog size, the number of sources, and how much headroom each source system has before concurrent metadata queries start to degrade it. A small catalog with one warehouse and a generous test window moves quickly, while a large estate with many sources, shared database hosts and change freezes takes longer because each change needs a controlled test run and observation period. No duration is set in advance. Ask for a timeline that lists the sources, the test windows you can offer, and the points where your team must approve a thread count before it reaches production.

What does the work need from our team?

Plan for four inputs before work starts: read access to each source with a service account that matches production permissions, a test environment that mirrors the metadata volume closely enough to be useful, access to OpenMetadata server and ingestion logs, and metrics from the server and the database. Without source owners on call during test windows, tuning stalls, because a source can slow down or hit its own connection limits under load. Confirm who can change ingestion configuration, who approves production runs, and who receives alerts when a run fails.

Can our internal team tune multithreaded ingestion alone?

Yes, if the team already runs OpenMetadata ingestion, can read the server and source metrics, and has a safe place to test. The work is mostly disciplined trial: change one thread setting, run ingestion against a test copy, record source latency, server load and error rates, then increase or stop. Teams with limited capacity often struggle because the beta option is still changing, and a wrong setting can cause source throttling or failed runs that look like unrelated errors. A written test plan, a rollback setting and a named owner for each source make an internal effort far more reliable.

When does a partner help with ingestion concurrency?

A partner helps most when the catalog has many sources with different limits, when source owners cannot offer test windows, or when ingestion is part of a wider OpenMetadata rollout that also needs connectors, lineage and access control. DeployOpen plans and runs this work inside the client's infrastructure, sets the test sequence, documents thread counts per source, and hands over the runbook. Engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. Ongoing checks after an upgrade can be covered by a retainer.

What load does concurrent ingestion put on sources and the server?

Concurrent ingestion multiplies the metadata queries sent to each source and the writes sent to the OpenMetadata server and its database and search services. Sources can see more connections, longer query queues and higher CPU on catalog views, while the server sees more parallel API requests and database writes. The minimum sizing in the bare metal documentation (2 vCPUs, 4 GB RAM and 20 GB storage for the server, with the database and search services each needing at least 2 vCPUs, 2 GB RAM and 30 GB storage) is a floor, not a tuning target. Watch connection pool use, JVM memory and search indexing lag during test runs before raising thread counts.

What goes wrong when thread counts are set too high?

The usual failures are source throttling or lockouts, connection exhaustion on the source or on OpenMetadata's database pool, partial ingestion runs that leave some assets stale, and server memory pressure that slows the API for analysts. Because the option is beta, also confirm that a failed run can be retried cleanly and that the ingestion version matches the server version. Check the source's own monitoring and the ingestion logs first, then reduce the thread count for that source only. Keep the previous working configuration in version control so the rollback is a single change.

How concurrent ingestion loads your sources and server

The run starts in the ingestion runner, which splits the work across worker threads that each read metadata from the source. Each thread pulls its batch through the source's own connection, so the source sees several sessions at once and its query limits matter. Metadata then moves to the OpenMetadata server, which writes to its database and updates the search index. Watch the source for connection and query pressure, the server for CPU and memory, and the database and search index for slow writes.

Worker threads read the source in parallel and push batches through the server to its database and search index.

How DeployOpen scopes and supports ingestion tuning

Tuning ingestion concurrency is a change to a live metadata pipeline, so the work is scoped in writing before anything changes. The cards below follow the path from agreed scope, through baseline and staged tests in your environment, to documented settings and ongoing support after upgrades.

Fixed scope agreed in writing

Most engagements are fixed-scope, so the source list, the connectors involved, the ingestion pipelines to tune, the test windows and the deliverables are agreed before work starts. Ask the partner to name which sources will be tested, which source owners must approve load tests, and what happens if a source cannot tolerate the planned concurrency. A quote follows from that written scope, not from a generic tuning package.

Baseline runs before any change

Before raising thread counts, the team records sequential run durations, source query times, error counts and server CPU, memory and database connections for each pipeline. These baselines are what make a later improvement or regression visible. Check that the baseline covers a typical run and a heavy run, since a single quiet run can hide contention.

Staged tests in your environment

Thread counts are raised in steps on a non-production OpenMetadata deployment that resembles yours, with source load limits agreed with each source owner. Each step is compared with the baseline for run time, failed entities and load on the source and the server. The tests run inside your cloud accounts, data centers or air-gapped network, so no metadata or source access leaves your control.

Documented settings and rollback

The selected thread counts, the schedule changes, the source-side limits and the rollback steps are written into a runbook your operators can follow. The document records the OpenMetadata version tested, the beta status of the option and the conditions under which the settings should be revisited. Ask for the rollback procedure to be tested as well as the forward change.

Retesting after upgrades

Ingestion behavior can change between releases, and the OpenMetadata 2.0 release notes list changes to ingestion images and Airflow that affect how pipelines run. A retainer can cover retesting the chosen settings after each upgrade, checking connector behavior and updating the runbook. Confirm with the partner which upgrade activities the retainer includes and which are separate work.

2.0 release notes

Ongoing support and handover

Operators need to know what to watch after tuning, such as source rate limit errors, pipeline runtimes creeping upward and database connection pressure. Ask for the monitoring checks and alert thresholds to be handed over with the runbook, and for the operations team to rehearse the rollback. Support terms, response expectations and the retainer scope should be confirmed in writing before the engagement starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.