跳转到主内容

NFS 协议的空闲连接超时值是多少?

Views:
142
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用于

  • ONTAP 9.5+
  • NFS

回答

默认超时时间为 360 秒。

  • 显示 nfs 空闲连接超时配置:

::*> nfs show -fields idle-connection-timeout,allow-idle-connection
vserver     idle-connection-timeout allow-idle-connection
------------- ----------------------- ---------------------
svm1_ontap912 360            enabled
svm2_ontap912 360            enabled

 

注: 从 ONTAP 9.12.1+  开始,选项和字段被命名为 -allow-idle-connection-timeout 

追加信息

  • 这些选项是在 ONTAP 9.5 中引入的
  • 自 ONTAP 9.11.1 -allow-idle-connection 起,这是新 SVM 的默认值(RFE 1431560
  • 要启用和设置值,请使用高级权限:

示例:

::*> vserver nfs modify -vserver <NAME>–allow-idle-connection enable -idle-connection-timeout 360

注意: 这仅适用于新建立的连接。

  • 没有最佳实践,因为它是特定于环境的。
  • 较低的空闲超时可能允许受影响的客户端或用户更快地恢复
  • 使用测试环境找到最佳设置
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.