mongodb: set min memory to 2GB

This commit is contained in:
Girish Ramakrishnan
2026-03-05 20:08:16 +05:30
parent b972891337
commit 74c73c695f
+2 -1
View File
@@ -1502,13 +1502,14 @@ const SERVICES = {
name: 'Mail',
status: containerStatus.bind(null, 'mail'),
restart: () => mailServer.restart(),
// delayed loading because of esm modules
get defaultMemoryLimit() { return mailServer.DEFAULT_MEMORY_LIMIT; }
},
mongodb: {
name: 'MongoDB',
status: statusMongodb,
restart: restartMongodb,
defaultMemoryLimit: (1 + Math.round(os.totalmem()/(1024*1024*1024)/4)) * 256 * 1024 * 1024
defaultMemoryLimit: Math.max(2 * 1024 * 1024 * 1024, (1 + Math.round(os.totalmem()/(1024*1024*1024)/4)) * 256 * 1024 * 1024)
},
mysql: {
name: 'MySQL',