diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 5685684..6da0924 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -72,7 +72,7 @@ export async function runtimeCheckLogs(folderPath) { const filePath = `${folderPath}/${fileName}`; const scan = fs.watchFile( filePath, - { interval: 120000 }, + { interval: 300000 }, async (eventType) => { //check special item, extra RAM, error in log let lines = []; diff --git a/config/database.ts b/config/database.ts index 20fae94..e0a0d1c 100644 --- a/config/database.ts +++ b/config/database.ts @@ -42,6 +42,8 @@ const databaseConfig: DatabaseConfig = { password: Env.get('MYSQL_PASSWORD', ''), database: Env.get('MYSQL_DB_NAME'), }, + pool: {min:1, max:200}, + acquireConnectionTimeout: 10000, migrations: { naturalSort: true, },