Server Configuration Reference
This document describes OpenMetadata Server ConfigurationServer Port
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
Event Handlers
Healthcheck
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 withmaxmemory-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, orvolatile-lfuif 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.
redis.conf:
redis-cli:
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. SetCACHE_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, andglossaryTerm. Leave out large types such astableandtestCase. - Turn off Warm Read Bundles (
warmBundles).
Check What Uses Redis Memory
To see which keys use the most memory, run theseredis-cli commands:
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:- Check the eviction policy with
redis-cli CONFIG GET maxmemory-policy. If it returnsnoeviction, setmaxmemoryand an LFU policy. - Lower the cache TTL.
- Limit the Cache Warmup application.
- Check what uses Redis memory to find the keys that grow the most.