return swap listing in the disk route

This commit is contained in:
Girish Ramakrishnan
2022-11-04 15:09:37 +01:00
parent c4c90cfaf9
commit 549cb92ce7
8 changed files with 50 additions and 20 deletions
+4 -4
View File
@@ -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' : '';