mysql: bump connection limit to 200

This commit is contained in:
Girish Ramakrishnan
2021-04-09 10:55:31 -07:00
parent 5ae5566ce8
commit 131711ef5c
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
# http://bugs.mysql.com/bug.php?id=68514
[mysqld]
performance_schema=OFF
max_connections=50
max_connections=200
# on ec2, without this we get a sporadic connection drop when doing the initial migration
max_allowed_packet=64M
+9 -3
View File
@@ -62,7 +62,10 @@ async.series([
database.initialize,
settings.initCache
], function (error) {
if (error) return process.exit(50);
if (error) {
console.error(error);
return process.exit(50);
}
const debug = require('debug')('box:taskworker'); // require this here so that logging handler is already setup
const NOOP_CALLBACK = function (error) { if (error) debug(error); };
@@ -75,11 +78,14 @@ async.series([
debug(`Starting task ${taskId}. Logs are at ${logFile}`);
tasks.get(taskId, function (error, task) {
if (error) return process.exit(50);
if (error) {
debug(error);
return process.exit(50);
}
tasks.update(taskId, { percent: 2, error: null }, function (error) {
if (error) {
console.error(error);
debug(error);
return process.exit(50);
}