-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk capacity watchdog sometimes ignores config values #747
Comments
As the warning level messages caused by the hard coded value (80%) defined at https://github.com/leo-project/leo_watchdog/blob/develop/include/leo_watchdog.hrl#L92, so it seems to work as expected. (The error level messages should be logged when the actual usage exceeds watchdog.disk.threshold_disk_use) However this spec can confuse much users like you so that we'd like to take another look whether we really need a hard coded soft limit (IMHO, no needs). |
@mocchira I'm trying to run gateways on servers that have some other load and get this in logs:
Surely enough there is such filesystem. And it's 80% busy which is totally fine since it's set up to stay around 75-82% busy all the time:
But 1) gateway shouldn't look there at all! None of the paths in config files point to that filesystem and 2) there should be a way to disable it, but there are no disk watchdog-related options in config file (and according to schema, disk watchdog defaults as "disabled" for gateway). |
WIP |
@vstax
To make it permanent change, adding below lines into leo_gateway.schema as https://github.com/leo-project/leofs/pull/819/files does will do its job. %% @doc Disable checking the disk usage with disksup by setting its threshold to 1.0(100%)
{mapping,
"os_mon.disk_almost_full_threshold",
"os_mon.disk_almost_full_threshold",
[
{datatype, integer},
{default, 1}
]}. I will send the PR to add the above patch later. |
@mocchira Thank you, the schema fix works. |
Default value for disk capacity watchdog is 85 (
watchdog.disk.threshold_disk_use = 85
). I got system A with 25% of free space:and system B with 83% of free space:
With default values watchdog doesn't trigger for system A (expected) but triggers for system B (unexpected: it's set to 85%, but the disk use is 83%!):
This is first problem. Second problem is that config value is ignored. I set
watchdog.disk.threshold_disk_use = 95
for system B but I still see the same watchdog message, which shouldn't happen. I setwatchdog.disk.threshold_disk_use = 70
for system A and I do get watchdog message. [EDIT: I got wrong results here originally, fixed]In other words, reducing the value works as expected, but increasing it doesn't. Also, there is something fishy about triggering at 83% disk usage with default set to 85.
The text was updated successfully, but these errors were encountered: