You can update the DB parameters by triggering CNF reconfigure using the following values.yaml
. To find complete list of database helm property, see https://github.com/goharbor/harbor-helm/blob/main/values.yaml.
database.maxIdleConns: The maximum number of connections in the idle connection pool
database.maxOpenConns: The maximum number of open connections to the database
database: maxIdleConns: 60 maxOpenConns: 110
Validate above properties are set by executing the following commands.
NAMESPACE=<<harbor-namespace>> POD_NAME=$(kubectl -n $NAMESPACE get pod -l "component=database,app=harbor"-o name) kubectl exec -it $POD_NAME -n $NAMESPACE -- cat /var/lib/postgresql/data/pgdata/pg14/postgresql.conf