What is the idle connection timeout value for NFS protocols?
Applies to
- ONTAP 9.5+
- NFS
Answer
Default timeout is 360 seconds.
- To show nfs idle connection timeout configuration:
::*> nfs show -fields idle-connection-timeout,allow-idle-connection
vserver idle-connection-timeout allow-idle-connection
------------- ----------------------- ---------------------
svm1_ontap912 360 enabled
svm2_ontap912 360 enabled
Note: Since ONTAP 9.12.1+ the option and field is named -allow-idle-connection-timeout
Additional Information
- The options were introduced in ONTAP 9.5
- Since ONTAP 9.11.1
-allow-idle-connection
is default for new SVMs (RFE 1431560) - To enable and set value, use with advanced privilege:
Example:
::*> nfs option -vserver <VSERVER_NAME> –allow-idle-connection enable -idle-connection-timeout 360
Note: This will only apply to new connections made.
- There is no best practice as it is environment specific.
- Lower idle timeout may allow for the affected client(s) or users to recover more quickly
- Use test environment to find optimal setting