From 31cf9fb59e2237d522cb521368de4e2aee757f9b Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Wed, 24 Nov 2021 14:13:26 -0500 Subject: [PATCH 1/3] Disable load check until we have a process of actively addressing it --- setup-scripts/health-checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index 7c5e9d94..738e8c2c 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -43,7 +43,9 @@ setup() async def run_checks(): print("Running Skynet portal health checks") try: - await check_load_average() + # Disabling load check until we have metrics solution and process to + # better address + # await check_load_average() await check_disk() await check_health() await check_alerts() From 3e17c1a9ee264f9854254dbcb17aac896056ddad Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Wed, 1 Dec 2021 12:07:15 -0500 Subject: [PATCH 2/3] remove ping instead of disable --- setup-scripts/health-checker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index d0654b58..a8f83a32 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -46,9 +46,7 @@ setup() async def run_checks(): print("Running Skynet portal health checks") try: - # Disabling load check until we have metrics solution and process to - # better address - # await check_load_average() + await check_load_average() await check_disk() await check_health() await check_alerts() @@ -74,7 +72,9 @@ async def check_load_average(): load_av = re.match(pattern, uptime_string).group(1) if float(load_av) > 10: message = "High system load detected in uptime output: {}".format(uptime_string) - await send_msg(message, force_notify=True) + # Disabling pings until we have metrics solution and process to better + # address + await send_msg(message, force_notify=False) # check_disk checks the amount of free space on the /home partition and issues From c45b9c41bd2fc3b402fe9f3b88f814d3366b2946 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Wed, 1 Dec 2021 14:16:46 -0500 Subject: [PATCH 3/3] format --- setup-scripts/health-checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index a8f83a32..b66459a8 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -111,7 +111,9 @@ async def check_disk(): # dump disk usage script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) - os.popen(script_dir + "/disk-usage-dump.sh " + script_dir + "/" + DISK_USAGE_DUMP_LOG) + os.popen( + script_dir + "/disk-usage-dump.sh " + script_dir + "/" + DISK_USAGE_DUMP_LOG + ) inspect = os.popen("docker inspect sia").read().strip() inspect_json = json.loads(inspect)