The trouble is that the only sure way to know if MFS hangs is to try and
use it. For one, the node exporter is not a health prober per se, bur more
importantly, when NFS does hang, this leaves a thread permanently stuck in
an uninterruptible syscall. Very soon the exporter would run out of threads
and stop working altogether. For the same reason, do not put textfile
metrics files on NFS.

I believe the only way to do this safely is a separate check script/loop.
Don't start the script with cron, you need to make sure that once it is
stuck it stops trying until it is unstuck again, or you will fill up your
process table with stuck processes that cannot be killed.

/MR


On Tue, 3 Mar 2020, 16:54 Yagyansh S. Kumar, <[email protected]>
wrote:

> Hello experts.
> I want to check if the NFS is hanged(i.e whether it is accessible from the
> server or not, and if yes then what is the response time it is getting). I
> have already enabled the nfs and nfsd collectors, but haven't found any
> that can accurately tell me every time the NFS hangs. Any help would be
> appreciated.
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-developers/1b166f35-fdb0-44fe-9fda-294fcde864f5%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-developers/1b166f35-fdb0-44fe-9fda-294fcde864f5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5UCRoZGsEr88W7Kz%3DxCWbKObjwSiehTBZetkYsV8sUuig%40mail.gmail.com.

Reply via email to