diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 3894be29ba..f3f9db67fd 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -367,7 +367,7 @@ $dbService = $this->getParam('database'); - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS - _APP_EMAIL_CERTIFICATES - + appwrite-worker-databases-: image: /: entrypoint: worker-databases diff --git a/src/Appwrite/Event/Database.php b/src/Appwrite/Event/Database.php index 86bb2fa657..b827cab0f6 100644 --- a/src/Appwrite/Event/Database.php +++ b/src/Appwrite/Event/Database.php @@ -173,7 +173,7 @@ class Database extends Event $dsn = new DSN("mysql://$database"); } - $numWorkers = (int) System::getEnv('_APP_DATABASE_WORKERS', 4); + $numWorkers = (int) System::getEnv('_APP_DATABASE_WORKERS', 1); $workerIndex = \abs(\crc32($project->getId())) % $numWorkers; $this->queue = $dsn->getHost() . '-' . $workerIndex; }