When connection pool tuning matters for OpenMetadata
The connection pool limits how many database operations OpenMetadata can run at the same time, so tuning it matters once a catalog grows, more people browse it, and ingestion jobs write metadata in parallel. The symptoms usually look like slow or failing pages, timeouts in API calls and ingestion runs that stall while the database itself looks healthy. Pool tuning is one step among sizing the database, the search service and the OpenMetadata server, and it should not be the first thing changed when the whole stack is undersized. Start by confirming the baseline: Java 21 for the server, and either MySQL 8.0.42 or later or PostgreSQL 15 or later, according to the OpenMetadata bare metal deployment docs. Those documents also list Elasticsearch 9.x or OpenSearch 3.x for search.
The bare metal documentation gives a minimum server size of 2 vCPUs, 4 GB RAM and 20 GB storage, with the database and search services each needing at least 2 vCPUs, 2 GB RAM and 30 GB storage. These are minimums, not production sizing. A catalog with many assets, frequent profiling and several concurrent ingestion pipelines will need more, and a pool set higher than the database can serve only moves the queueing from the application into the database. Before changing pool settings, ask your team to confirm the expected number of assets, concurrent users, pipeline schedules and the database's own connection limit, and record current CPU, memory and connection counts during a busy period.
Treat pool exhaustion as a hypothesis to test rather than a diagnosis to assume. Check the OpenMetadata server and database logs for connection acquisition timeouts, compare the number of open database connections with the configured limit during ingestion peaks, and look for long-running queries that hold connections open. If the database has spare capacity and connections are consistently at the ceiling, a pool change is justified. If the database is saturated on CPU, memory or I/O, raising the pool will make the problem worse, so resize the database first and retest.
Symptoms that point to connection pool exhaustion
Pool exhaustion rarely announces itself as a database problem. It appears as slow pages, stalled jobs and intermittent errors that look like application or infrastructure faults, so the useful work is separating it from its common look-alikes before changing any setting.
UI requests time out under load
Pages and API calls hang or fail only when many users are active at once, then return to normal when activity drops. Pool exhaustion produces this pattern because each request waits for a free connection before it can run a query. Before changing the pool, check database CPU, slow query logs and load balancer timeouts. If the database is idle while the UI stalls, the wait is more likely inside OpenMetadata.
Ingestion jobs waiting on database calls
Metadata ingestion runs stall or slow sharply while the UI is also busy, because ingestion writes compete with interactive reads for the same connections. Check whether the stall begins when a second workload starts, and compare the time spent in the source connector with the time spent saving entities to the OpenMetadata database. Source-side slowness, such as a slow warehouse metadata query, shows up in the connector logs rather than as waits on the server.
Errors about waiting for a connection
Server logs may report that a request timed out while waiting for a connection from the pool, or that no connection became available in time. This is the most direct sign of exhaustion, but its wording depends on the pool library and version in your deployment. Confirm the exact message against the version you run, then count how many requests overlap at the time it appears. Repeated errors without overlapping load point toward a connection that is held open and never returned.
Database connections near the server limit
The database reports many open sessions from the OpenMetadata host, sometimes close to the maximum the server allows. Count sessions by client address and state, since idle sessions held by the application suggest a sizing problem while long-running sessions suggest blocked queries. Pool size is not the only factor, because several application instances each hold their own pool and multiply the total.
Slow pages that recover when load drops
Pages load slowly during busy periods and return to normal without any restart or change, which fits queueing at the pool. Search index lag produces a different pattern: results are stale or counts are wrong, while response times stay normal. Compare the slow window with search indexing activity and with network latency between the server and the database before concluding the pool is the cause.
Network latency between services
Connections take longer to open or each query round trip grows, so the same pool serves fewer requests per second. This can come from a firewall, a cross-zone route or an overloaded proxy between the application and the database. Measure connection setup time and query round trip from the OpenMetadata host directly, and compare with the same measurement from a second client. Network slowness and pool exhaustion can coexist, so test both before drawing conclusions.
Pool settings to review and when each fits
This table lists the pool-related settings to review, what each controls, and when to raise or lower it. Read it as a set of trade-offs: more concurrent connections serve more users and ingestion jobs, but each one holds database memory and adds connection overhead. Confirm exact configuration key names and defaults in the OpenMetadata configuration reference for your version before changing anything.
| Setting | What it controls | When to raise or lower it | Trade-off |
|---|---|---|---|
| Maximum pool size | The most database connections the OpenMetadata server can hold open at once | Raise it when logs show requests waiting for a connection during peak use or large ingestion runs. Lower it if the database reports memory pressure or too many connections. | More concurrency against more database memory and connection overhead |
| Minimum idle connections | How many connections stay open when traffic is low | Raise it modestly if the first requests after quiet periods are slow. Keep it low if the database host is small or shared with other applications. | Faster response after idle periods against connections held open for nothing |
| Connection timeout | How long a request waits for a free connection before failing | Set it so short waits are tolerated but a true exhaustion fails visibly. A very long value hides exhaustion behind slow pages. | Fewer errors during short bursts against slower failure when the pool is saturated |
| Idle timeout | How long an unused connection may sit in the pool before it is closed | Shorten it if the database closes idle sessions or a firewall drops them. Lengthen it if connections are repeatedly reopened under steady load. | Fewer stale connections against more reconnect churn |
| Maximum connection lifetime | How long any single connection is kept before it is recycled | Keep it below any proxy, load balancer or database idle limit so connections are retired cleanly before they are dropped. | Clean recycling against occasional reconnect cost |
| Database-side maximum connections | The total sessions the database server accepts across all clients | Confirm it exceeds the sum of pool sizes for OpenMetadata, ingestion jobs and other applications. Raise it only with matching memory on the database host. | Headroom for other clients against more memory per connection on the database |
How to size the pool without starving the database
The pool has to be sized against two limits at once, because it is bounded on both sides. On the OpenMetadata side, application threads, ingestion workers and API clients all draw connections from the same pool, so a busy ingestion run can take connections that interactive users need. On the database side, the server has its own maximum connection setting and spends memory on every open connection, whether or not that connection is doing work. A larger pool does not add capacity; it only moves the queue from the application into the database. Before changing any value, confirm the database's current connection limit, its memory headroom and how many connections are already in use during your heaviest ingestion window. Your database administrator or managed service documentation should give you these numbers.
A larger pool can also hide a real problem. When queries are slow, requests wait for a connection, and raising the pool size makes the waiting disappear for a while, but the slow queries keep running and now compete for database CPU, memory and locks with more concurrent work. Before increasing the pool, check query duration and lock waits on the database, and check whether the slowdown appeared after a version upgrade, a large ingestion or a change in indexes. If the database is already near its CPU or memory limits, a bigger pool will make latency worse, not better. Treat a pool increase as a last step after you have confirmed the database has spare capacity and the slow queries are understood.
Every OpenMetadata server replica or deployment keeps its own pool, so the number of database connections is the pool size multiplied by the number of instances, plus any connections used by ingestion components that connect directly. Three replicas each set to a generous pool can exhaust a database that looked comfortable with one instance. Write the total down before you change anything: list each replica, each ingestion runner and each admin or maintenance session, and add their maximums together. Then compare that total with the database limit and leave room for backups, migrations and operator logins. Confirm the exact pool setting names and defaults for your release in the OpenMetadata deployment documentation before editing any configuration.
Tuning the pool in a controlled sequence
This sequence turns pool tuning into a measured change: you capture a baseline, find the workload that is contending, change one setting at a time, and roll out with a way back. Each step closes with a check so the next change rests on evidence.
Record a baseline before changing anything
The platform or database owner captures the current state under a normal working day and one heavy ingestion window: open database connections, OpenMetadata API and UI response times, and the duration of the longest ingestion pipelines. Store the figures with the exact OpenMetadata version, the database engine and version, and the current pool settings. This step is done when a second person can read the record and reproduce the same measurements from it.
Confirm database connection limits and memory
The database administrator checks the server's maximum connection setting, the connections already reserved for other applications, and the memory available for each connection. Pool sizing is only safe when the sum of all pools across OpenMetadata replicas and other clients stays under the database limit with headroom for administrators. This step is done when the team has a written ceiling for OpenMetadata connections, agreed by the database owner.
Identify which workload is contending
The engineer separates UI sessions, API clients (including bots and scripts), and ingestion runs, then matches each group to its connection counts and timing in the database and application logs. Look for pool wait or failed-to-acquire-connection messages and note the time and workload when they appear. This step is done when the team can name the workload that waits longest and the hours when it does so.
Change one setting in non-production
The platform engineer adjusts a single pool value in a non-production environment that matches production's database engine, version and deployment method. Record the old value, the new value, and the reason, and keep every other setting unchanged so any effect can be attributed. Confirm the setting is applied after restart by checking the running configuration, not only the file. This step is done when the change is recorded and the environment has restarted cleanly.
Repeat load tests against the baseline
The team replays the workload pattern identified in step three, with UI sessions, API calls and an ingestion run in the same windows as the baseline. Compare connection counts, response times, ingestion duration and error logs with the recorded figures. If the test shows no improvement or new waits on the database, revert the setting and return to step three. This step is done when the results show the change helps the contending workload without raising database connection use above the ceiling from step two.
Roll out with a rollback plan
The change owner schedules the production change in a window agreed with the people who run ingestion and the database, and writes down the previous value and the exact steps to restore it. Apply the setting to one replica or one deployment first where the architecture allows it, then the rest. This step is done when the rollback steps have been rehearsed and the change owner has confirmed who can authorize a revert.
Monitor and confirm the failure has stopped
After rollout, the team watches database connection counts, OpenMetadata response times, and the application logs for pool wait or failed-to-acquire-connection messages across at least one full ingestion cycle and normal business hours. Compare the results with the baseline and keep the monitoring alerts in place. This step is done when the error no longer appears in the logs, connection counts stay under the agreed ceiling, and the owners sign off the change in the runbook.
How requests and ingestion share the connection pool
Requests begin at the UI and API clients and at ingestion workers, and both pass through the same OpenMetadata server connection pool before reaching the database. The pool is the shared gate: every metadata read, write and ingestion update borrows a connection from it, so a burst of ingestion can starve interactive users. The search service sits beside the database, so check that the pool and the database's own connection limit are sized together, and that search indexing is not hiding load on the same server.
Requests and ingestion both draw from one pool before reaching the database.
Security and operational considerations for pool changes
Pool size changes touch more than performance. They alter which accounts connect, how traffic is protected, what gets logged, and when the service is available. Treat each pool change as a configuration change with security review, a restart, and a maintenance window.
Database account permissions and TLS
Give OpenMetadata its own database account with only the privileges its schema and migrations require, and avoid sharing it with other applications. Raising pool size multiplies the sessions that account holds open, so confirm the database's per-user connection limit covers the new total. Enable TLS on the JDBC connection to the database and confirm the server certificate is validated, not just encrypted. Ask your DBA which account runs migrations, since upgrades may need broader rights than daily operation.
Keep credentials out of config files
Pool settings usually sit beside the database password in the same configuration file, which makes that file a credential store. Inject the database username and password through environment variables or your secrets manager, and restrict read access to the service account that runs OpenMetadata. Check that the pool change did not copy credentials into a values file, a container image layer, or a ticket attached to the change. Rotate the database password after any accidental exposure and redeploy so the new value takes effect.
Effect on audit logging
Connection pool changes can alter how many database sessions appear in audit trails, because more pooled connections mean more distinct sessions under the same account. Confirm your database audit logging still attributes actions to the right user and that log volume has headroom at the new pool size. Review whether OpenMetadata's own change history, which records entity updates made through the platform, is unaffected by a configuration change. Document the old and new values so auditors can trace when the setting changed.
Availability during restart
Pool settings are read at startup, so applying them means restarting or redeploying OpenMetadata, which interrupts users, API clients, and running ingestion jobs. Check whether any scheduled ingestion is in progress before the restart and reschedule it if needed. Test the change in a staging environment that mirrors production database limits, then apply it in a maintenance window agreed with the data owners. Keep the previous values ready for a fast rollback if connection errors appear after the restart.
Monitoring connection counts
Track active and idle connections at the database, using its native session views, and compare them with the pool maximum you configured. Scrape OpenMetadata's Prometheus metrics on the admin port and alert when pool wait times or connection errors rise after a change. Watch for connections that stay open after load drops, which can signal a leak rather than normal demand. Record baseline counts before the change so you can judge whether the new settings behaved as expected. Confirm the exact metric names in your deployed version's documentation.
Questions teams ask before tuning the connection pool
Will tuning the connection pool alone fix a slow OpenMetadata instance?
Usually not on its own. Pool settings only help when requests are waiting for a free database connection, so the first job is to confirm that waiting is the bottleneck. Slow search, a stale index, heavy profiling jobs, undersized database hardware or a slow query can all look like pool trouble from the user's side. A sound review checks database active and idle connection counts, query latency and server logs together, then changes the pool only if the evidence points there. If the database is short of CPU, memory or disk I/O, a larger pool can make the problem worse by sending more concurrent queries to a saturated server.
What does a pool tuning project need from our team?
It needs four things. The first is database access with rights to read connection statistics and run read-only queries against the OpenMetadata schema, plus a maintenance window for configuration changes. The second is a load test environment that mirrors production data volume closely enough to reproduce waiting connections, since a small test database hides most of the effect. The third is monitoring that records connection counts, request latency, JVM behavior and database resource use over time. The fourth is a named owner on your side who can approve changes to the database and the OpenMetadata server configuration. Ask your consultant to list each of these in the written scope.
Can our internal platform team tune the connection pool without outside help?
Often yes, if the team already operates OpenMetadata and its database, and has someone comfortable reading database metrics and load test results. The work is mostly measurement and careful, reversible change, not new engineering. Outside help is more useful when no one has a load test environment, when production incidents are already occurring, or when the same team also owns ingestion, search and backups and has no spare time. Whichever path you choose, agree in advance who owns the change record and who signs off on the final settings, so the result survives staff changes.
How long does connection pool tuning take?
The duration depends on how quickly you can reproduce the problem and how many environments must be tested. The main drivers are catalog size, the number of concurrent users and ingestion jobs, how mature your monitoring is, and whether a representative test environment already exists. A team with clean metrics and a staging copy of production data can finish a focused review much faster than one that must first build a load generator and collect baseline data. Ask any provider to state the phases, the environments used and the number of change and retest cycles they expect, rather than a single figure with no basis.
What should a consultant quote for connection pool tuning include?
A written quote should follow from a written scope and list the work in phases. Expect a diagnostic phase covering metrics review and the symptoms observed, a test phase with the load test design and environments, a change phase with the specific pool settings and database limits to be modified, and a verification phase with retests. It should also name the deliverables, such as a configuration record, a before and after comparison and an operations note for your team. Check who provides the environment, who supplies database access, what happens if the first hypothesis is wrong, and whether any follow-up tuning after an OpenMetadata upgrade is included or priced separately.
How are pool setting changes tested and rolled back?
Change one setting at a time in a test environment, run the same load profile each time, and record latency, error rates, connection counts and database resource use. Only promote a change to production after it improves the measured symptom without pushing the database into saturation. Keep the previous configuration as a saved file and note the database maximum connection limit, so you can restore it quickly. Schedule production changes in a window with a named person watching the metrics, and define the rollback trigger before the change, such as rising error rates or failed health checks. Consider rehearsing the rollback in staging as well.
What operating costs and risks remain after tuning?
Tuning is a one-time effort, but the settings need review whenever catalog size, user count, ingestion schedules or the OpenMetadata version change. Recurring costs are the monitoring you keep running, the staff time to watch trends and the retesting after upgrades, which the upgrade notes for your release should inform. The main risk is that a pool set too large exhausts the database's own connection limit, while a pool set too small causes waiting under peak load. Confirm with your database vendor how connection limits, memory per connection and any proxy layer behave in your deployment before choosing final numbers.
Official OpenMetadata documentation to read first
Before you change any pool setting, read the bare metal deployment documentation first, because it lists the prerequisites that shape your connection budget: Java 21, MySQL 8.0.42 or later or PostgreSQL 15 or later, and Elasticsearch 9.x or OpenSearch 3.x. The minimum sizing it gives (2 vCPUs, 4 GB RAM and 20 GB storage for the server, with at least 2 vCPUs, 2 GB RAM and 30 GB storage each for the database and search services) is a floor, not a capacity plan. Use it to confirm that your database host has room for more connections than your current configuration allows. Pair that with the OpenMetadata bare metal deployment docs and the OpenMetadata deployment docs if you run on Kubernetes, since the pool sits between the server replicas and the database, and replica count changes the total.
The security documentation matters for pooling because it describes how authentication is wired in. Confirm which authentication mechanism your deployment uses, since OpenMetadata does not support combining SSO and basic authentication. Login bursts after a token expiry or a provider outage can briefly multiply database work, so know how your identity setup behaves under load before you size the pool. Read the OpenMetadata security docs and note any authentication settings your team would need to correlate with pool symptoms during an incident.
Read the 2.0 release notes before any upgrade that might change database behavior or the components around it. The 2.0.0 release, published on August 24, 2026, lists breaking changes that affect configuration, including the embedding credentials move into an llmConfiguration block and the ingestion image rebuild for Python 3.12. None of these are pool settings, but a version change is the moment to re-check your configuration file against the release notes. Confirm the exact pool keys for your installed version in the official configuration reference, because defaults and key names can differ between 1.x and 2.x. The OpenMetadata 2.0 release notes are the natural next read for version-specific changes.
How DeployOpen scopes and supports OpenMetadata performance work
DeployOpen treats connection pool tuning as part of the OpenMetadata deployment, not a one-off setting change. The work starts from your catalog size, user count and database platform, then covers configuration, load checks, documentation and ongoing support in infrastructure you control.
How we scope
- Confirm the OpenMetadata version, database engine (MySQL or PostgreSQL) and how the server is deployed before any pool settings change.
- Record catalog size, ingestion schedule, concurrent users and current pool symptoms so tuning targets are based on your workload.
- Agree the written scope, deliverables and timeline before work starts, since engagements are fixed-scope and quoted from that scope.
How we build
- Review current pool and database connection limits, then set changes in a staging copy of your environment first.
- Run load that mirrors your ingestion overlap and peak browsing, and watch for connection wait errors and slow API responses.
- Check that the database server's own connection ceiling and memory allow the chosen pool size across every OpenMetadata instance.
How we hand over
- Document each pool setting, its default, the value you chose and the reason, so future upgrades do not silently reset it.
- Provide a runbook listing the symptoms that point to pool exhaustion and the first checks to run for each one.
- Walk your platform and database teams through the change record, rollback steps and the load results behind each value.
How we support
- Retest pool sizing after OpenMetadata upgrades, new connectors or large increases in catalog size or user count.
- Ongoing support, upgrades and continuous testing are available as a retainer if your team wants a partner on call.
- Ask any provider to confirm in writing which environments, load tests and handover documents are included in the quote.

