Skip to main content

Server Configuration Reference

This document describes OpenMetadata Server Configuration

Server Port

By default, the OpenMetadata server runs on port 8585. It uses Jetty Server. The above config can be changed to make it run on a different port. Once you have updated the port details in config restart the server.

Database

OpenMetadata supports MySQL or Postgres as the database. The database configurations and connection strings must be as specified below.

MySQL Configuration

We recommend you create a MySQL user with a strong password and update this section accordingly.

PostgreSQL Configuration

OpenMetadata uses stored generated columns (supported since Postgres 12). We recommend running Postgres 15 or higher. Create a Postgres user with a strong password and update this section accordingly.

ElasticSearch

ElasticSearch is one of the pre-requisites to run OpenMetadata. Default configuration expects a single instance of ElasticSearch running on the local machine. Please make sure you update it with your production elastic search.

Event Handlers

EventHandler configuration is optional. It will update the AuditLog in MySQL DB and also ElasticSearch indexes whenever any entity is updated either through UI or API interactions. We recommend you leave it there as it enhances the user experience.

Healthcheck

Healthcheck API provides an API endpoint to check the OpenMetadata server health. We recommend in production settings to use this API to monitor the health of your OpenMetadata instance. Please tune the above configuration according to your production needs.

Cache (Redis)

The cache reduces database load by keeping entities, relationships, and tag usage in Redis. It is off by default.

Redis Deployment Modes

The Redis endpoint can be a standalone instance, a primary/replica setup, or a Redis Cluster.

Size Redis and Set an Eviction Policy

Redis keeps every cached entry in memory. If you don’t limit its memory, Redis can fill all of it while ingestion runs and stay full. A Redis instance that stays at 100% memory usually runs with maxmemory-policy noeviction, which is the Redis default. With this policy, Redis never removes keys to make room. Set both of these Redis settings:
  • maxmemory: About 75% to 80% of the instance RAM, which leaves room for Redis overhead.
  • maxmemory-policy: allkeys-lfu, or volatile-lfu if you only want Redis to remove keys that have a TTL. LFU removes the keys used least often. It removes the one-time writes from an ingestion run before frequently used UI data and sessions.
For example, on an instance with 80 GB of RAM, add this to redis.conf:
To change the settings on a running instance, use redis-cli:
On a managed Redis service, set the same values in the service’s parameter group or settings.

Lower the Cache TTL

Cached entries stay for 48 hours by default. Even a TTL of 4 hours keeps the entries of a whole ingestion run in memory. Set CACHE_ENTITY_TTL to between 300 and 900 seconds (5 to 15 minutes). A shorter TTL means more reads reach the database.

Limit the Cache Warmup Application

The Cache Warmup application loads entities into Redis ahead of time. On a large catalog it can use a lot of memory. If it is installed, go to Settings > Applications and open CacheWarmupApplication. Then do one or more of these:
  • Disable the application.
  • Narrow Entities to small, frequently read types: databaseService, database, databaseSchema, classification, tag, glossary, and glossaryTerm. Leave out large types such as table and testCase.
  • Turn off Warm Read Bundles (warmBundles).

Check What Uses Redis Memory

To see which keys use the most memory, run these redis-cli commands:
An admin can also count the cached keys that match a pattern with the OpenMetadata API. The pattern needs at least six literal characters before the first wildcard. Replace om:prod with your CACHE_REDIS_KEYSPACE value if you changed it. The following example counts the cached table entities:

Troubleshoot Redis Memory at 100%

If Redis memory reaches 100% during ingestion and stays there, do these steps in order:
  1. Check the eviction policy with redis-cli CONFIG GET maxmemory-policy. If it returns noeviction, set maxmemory and an LFU policy.
  2. Lower the cache TTL.
  3. Limit the Cache Warmup application.
  4. Check what uses Redis memory to find the keys that grow the most.

Security

To secure your OpenMetadata installation, see Security and Authentication and SSO.