We have a project backend running on NodeJS / expressJS / SequilizeJS as a RESTapi. That RESTapi connceted to a VueJS SPA.
Only 5 people use this system. Most of the operations are transactions.
We get an error
SequelizeConnectionAcquireTimeoutError: Operation timeout
This is our config object.
const sequelize = new Sequelize(
config.database,
config.username,
config.password,
{
host: config.host,
dialect: "mysql",
pool: {
max: 20,
min: 0,
acquire: 30000,
idle: 10000
}
}
);
We are certain that our server's memory is not the issue. Because only 5 percent is used.
Where does this error comes from?