From 1b24e2cbaf94e722228b15eff50bfa5134781e2c Mon Sep 17 00:00:00 2001 From: yodax Date: Mon, 22 Feb 2016 17:49:19 +0100 Subject: [PATCH 1/2] Reduce percentages for required memory checks --- management/status_checks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index 2b47ee4d..1feea68a 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -222,14 +222,14 @@ def check_free_memory(rounded_values, env, output): # Check free memory. percent_free = 100 - psutil.virtual_memory().percent memory_msg = "System memory is %s%% free." % str(round(percent_free)) - if percent_free >= 30: - if rounded_values: memory_msg = "System free memory is at least 30%." + if percent_free >= 20: + if rounded_values: memory_msg = "System free memory is at least 20%." output.print_ok(memory_msg) - elif percent_free >= 15: - if rounded_values: memory_msg = "System free memory is below 30%." + elif percent_free >= 10: + if rounded_values: memory_msg = "System free memory is below 20%." output.print_warning(memory_msg) else: - if rounded_values: memory_msg = "System free memory is below 15%." + if rounded_values: memory_msg = "System free memory is below 10%." output.print_error(memory_msg) def run_network_checks(env, output): From 7a191e67b89ab8d7f6cf2e44d990b9809640895a Mon Sep 17 00:00:00 2001 From: yodax Date: Mon, 22 Feb 2016 21:01:33 +0100 Subject: [PATCH 2/2] Add a changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9af2c3ca..135f056e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Control panel: * TLS certificate provisioning would crash if DNS propagation was in progress and a challenge failed; might have shown the wrong error when provisioning fails. * Backup times were displayed with the wrong time zone. +* Thresholds for displaying messages when the system is running low on memory have been reduced from 30% to 20% for a warning and from 15% to 10% for an error. * Other minor fixes. System: