Answer the question
In order to leave comments, you need to log in
Sequelize setting. How many connections?
Hello.
I am writing a small service, there will be about 100 active users. Currently, local settings are as follows:
host: 'localhost',
dialect: 'postgres',
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
}
Answer the question
In order to leave comments, you need to log in
"Active Users" is too generic name, what exactly is on this service? Chat, static site, currency exchange, real-time auction ?
I can offer this answer.
pool.max = 1;
while(notGoodEnough) {
pool.max++;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question