Details
-
Task
-
Resolution: Incomplete
-
P2: Important
-
None
-
None
-
None
-
License server development 27
Description
Study on how should be max and min pool size of the server to db connection.
After finding the suitable value, apply that value to the sequelize connection config.
Example:
sequelize = new Sequelize(config.licenseDb, { ssl: config.dbSSLConfig, logging: false, pool: { max: 90, // Postgres max connection is by default 100 (3 for superusers), but leave some room for other applications like monitoring, migrations etc. min: 0, idle: 5000, }, dialectOptions: config.sequelizeDialectOptions, });