mongodb: set min memory to 2GB
This commit is contained in:
+2
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user