
The trouble with mounting | Datadog
1/23/2017
This post details the investigation and resolution of a problem where the Datadog Agent would hang during disk checks due to `os.statvfs` calls on NFS mounts. The root cause was identified as `statvfs` hanging on hard-mounted NFS directories, exacerbated by glibc's implementation that iterates through `/proc/mounts`. The solution implemented was to run the `os.statvfs` call on a separate thread with a timeout, allowing the main agent thread to continue processing even if the `statvfs` call hangs.