return swap listing in the disk route
This commit is contained in:
+4
-4
@@ -781,7 +781,7 @@ async function applyMemoryLimit(id) {
|
||||
|
||||
debug(`applyMemoryLimit: ${containerName} ${JSON.stringify(serviceConfig)}`);
|
||||
|
||||
const memory = system.getMemoryAllocation(memoryLimit);
|
||||
const memory = await system.getMemoryAllocation(memoryLimit);
|
||||
await docker.update(containerName, memory, memoryLimit);
|
||||
}
|
||||
|
||||
@@ -921,7 +921,7 @@ async function startTurn(existingInfra) {
|
||||
const serviceConfig = await getServiceConfig('turn');
|
||||
const tag = infra.images.turn.tag;
|
||||
const memoryLimit = serviceConfig.memoryLimit || SERVICES['turn'].defaultMemoryLimit;
|
||||
const memory = system.getMemoryAllocation(memoryLimit);
|
||||
const memory = await system.getMemoryAllocation(memoryLimit);
|
||||
const realm = settings.dashboardFqdn();
|
||||
|
||||
let turnSecret = await blobs.getString(blobs.ADDON_TURN_SECRET);
|
||||
@@ -1637,7 +1637,7 @@ async function startGraphite(existingInfra) {
|
||||
const serviceConfig = await getServiceConfig('graphite');
|
||||
const tag = infra.images.graphite.tag;
|
||||
const memoryLimit = serviceConfig.memoryLimit || 256 * 1024 * 1024;
|
||||
const memory = system.getMemoryAllocation(memoryLimit);
|
||||
const memory = await system.getMemoryAllocation(memoryLimit);
|
||||
|
||||
const upgrading = existingInfra.version !== 'none' && requiresUpgrade(existingInfra.images.graphite.tag, tag);
|
||||
|
||||
@@ -1731,7 +1731,7 @@ async function setupRedis(app, options) {
|
||||
|
||||
// Compute redis memory limit based on app's memory limit (this is arbitrary)
|
||||
const memoryLimit = app.servicesConfig['redis']?.memoryLimit || APP_SERVICES['redis'].defaultMemoryLimit;
|
||||
const memory = system.getMemoryAllocation(memoryLimit);
|
||||
const memory = await system.getMemoryAllocation(memoryLimit);
|
||||
|
||||
const recoveryMode = app.servicesConfig['redis']?.recoveryMode || false;
|
||||
const readOnly = !recoveryMode ? '--read-only' : '';
|
||||
|
||||
Reference in New Issue
Block a user