reduce psql connection pool a bit
This commit is contained in:
@@ -19,7 +19,7 @@ const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
|
||||
|
||||
const builder = new addonBuilder(dummyManifest());
|
||||
const requestQueue = createNamedQueue(Infinity);
|
||||
const newLimiter = pLimit(40)
|
||||
const newLimiter = pLimit(30)
|
||||
|
||||
builder.defineStreamHandler((args) => {
|
||||
if (!args.id.match(/tt\d+/i) && !args.id.match(/kitsu:\d+/i)) {
|
||||
|
||||
@@ -3,7 +3,7 @@ const Op = Sequelize.Op;
|
||||
|
||||
const DATABASE_URI = process.env.DATABASE_URI;
|
||||
|
||||
const database = new Sequelize(DATABASE_URI, { logging: false, pool: { max: 50, min: 5, idle: 60 * 60 * 1000 } });
|
||||
const database = new Sequelize(DATABASE_URI, { logging: true, pool: { max: 30, min: 5, idle: 20 * 60 * 1000 } });
|
||||
|
||||
const Torrent = database.define('torrent',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user