diff --git a/changelog/items/other/min-free-param.md b/changelog/items/other/min-free-param.md new file mode 100644 index 00000000..0a6239f3 --- /dev/null +++ b/changelog/items/other/min-free-param.md @@ -0,0 +1 @@ +- Set `min_free` parameter on the `proxy_cache_path` directive to `100g` diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index a6883cb8..c8da6b0f 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -70,7 +70,7 @@ http { proxy_http_version 1.1; # proxy cache definition - proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=skynet:10m max_size=50g inactive=48h use_temp_path=off; + proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=skynet:10m max_size=50g min_free=100g inactive=48h use_temp_path=off; # this runs before forking out nginx worker processes init_by_lua_block { diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index c5023bf8..b66459a8 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -72,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 @@ -109,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)