From cc01e19ae143665fa1bc3adb217370cdfe5cfddb Mon Sep 17 00:00:00 2001 From: Sriharsha Chintalapani Date: Sat, 10 Aug 2024 09:37:57 -0700 Subject: [PATCH] Fix #17372: Add Connection Pooling config to database (#17373) --- conf/openmetadata.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/openmetadata.yaml b/conf/openmetadata.yaml index 8ee0c9341e4..ec2f68b1ecf 100644 --- a/conf/openmetadata.yaml +++ b/conf/openmetadata.yaml @@ -148,6 +148,13 @@ database: password: ${DB_USER_PASSWORD:-openmetadata_password} # the JDBC URL; the database is called openmetadata_db url: jdbc:${DB_SCHEME:-mysql}://${DB_HOST:-localhost}:${DB_PORT:-3306}/${OM_DATABASE:-openmetadata_db}?${DB_PARAMS:-allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC} + maxSize: ${DB_CONNECTION_POOL_MAX_SIZE:-50} + minSize: ${DB_CONNECTION_POOL_MIN_SIZE:-10} + initialSize: ${DB_CONNECTION_POOL_INITIAL_SIZE:-10} + checkConnectionWhileIdle: ${DB_CONNECTION_CHECK_CONNECTION_WHILE_IDLE:-true} + checkConnectionOnBorrow: ${DB_CONNECTION_CHECK_CONNECTION_ON_BORROW:-true} + evictionInterval: ${DB_CONNECTION_EVICTION_INTERVAL:-5 minutes} + minIdleTime: ${DB_CONNECTION_MIN_IDLE_TIME:-1 minute} migrationConfiguration: flywayPath: "./bootstrap/sql/migrations/flyway"