Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1082

Set pool size in database connection

    XMLWordPrintable

Details

    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, });
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aswalpit Ashan Walpitage
            lapham Lam Pham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes