Simultaneous connexion DB

Feature(s) impacted

Loading Forest. It’s not a bug.

Observed behavior

Expected behavior


We are using ForestAdmin with a backend on GCP using mysql.
I want to know if we can put a limit of a simultaneous number of connexion on the DB.

If not, what is the default ?

  • Project name: …
  • Team name: …
  • Environment name: Production
  • Agent (forest package) name & version: “meta”: {
    “liana”: “forest-express-sequelize”,
    “liana_version”: “9.2.6”,
    “stack”: {
    “database_type”: “multiple”,
    “engine”: “nodejs”,
    “engine_version”: “16.13.2”,
    “orm_version”: “6.28.0”
  • Database type: MySQL
  • Recent changes made on your end if any: …

Hello @Bastien_Blanc,

Thanks for your message :raised_hands:

You need to check how it is ruled by Sequelize: Connection Pool | Sequelize.
In your agent, you should find the Sequelize connection in the models/index.js file - and the default options should be logged the config/databases file.
If you didn’t make any change, it would be { maxConnections: 10, minConnections: 1 }

Let me know if that helps.

1 Like

Hello @adriguy ,

Thanks for the information.

I will try!