-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Host DiskStats produces quite different list of output to Linux "df" #20247
Comments
Hi @tomqwpl and thanks for raising this issue. Nomad populates this data using by detailing physical devices only and ignoring all others such as memory partitions. Toggling this behaviour in the code would be trivial, however, the return object size would significantly increase and the number of metrics emitted would also increase significantly per host. I believe a similar command to use would be |
@jrasell The list if populated using the underlying library whose name escapes me currently. My issue really is with the implementation of the underlying library and I've raised an issue at that level too. I want to display disk usage of the client nodes to the end user, and so the unfiltered list would not be what I would want. Any change here has to come from making use of a different version of the underlying library, making use of some currently unimplemented option in the underlying library, making use of a different underlying library that would do a different thing etc. So right now I'm not expecting any action at this level, it is more for information at this point. |
Hi @tomqwpl and thanks for the response. The library is gopsutil which has your current issue regarding disk listing. I'll keep an eye on that issue from the Nomad side, for any future changes we would need to be aware of.
OK, we appreciate the detail and this issue will be searchable by other user and engineers if this gets raised or discussed in the future. I'll close it out seeing as it was intended for information, but as I mentioned, will keep an eye on the gopsutil issue. |
Nomad version
Output from
nomad version
1.7.5Operating system and Environment details
Linux
Issue
The list of filesystems you get out of the DiskStats in HostStats is quite different to what you appear to get from df.
Here's an example from a Linux VM
Another example, this time from WSL:
Finally, inside a docker container:
I appreciate that this information all appears to be provided by the underlying shirou/gopsutil library, but clearly what it's doing isn't right here.
Reproduction steps
Make a request for the node stats and compare the list of filesystems with what you get from df.
Expected Result
Output to list the same filesystems as "df" on Linux
Actual Result
A different list.
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: