NCONNECT: SUPER CHARGE NFS

What is NCONNECT? Linux has a feature called “nconnect” that enables multiple TCP connections for a single NFS mount. The nconnect mount option exists in all Linux distributions with kernel 5.3 or higher and can be used with NFS v2, v3, and all v4.x variants. It should be set to a number from 1 to 16 (inclusive). The nconnect option allows the user to specify the number of connections that should be established between the client and server up to a limit of 16. 

What is the FlashBlade? FlashBlade//S is a high-performance consolidated storage platform for both file and object workloads, delivering a simplified experience for infrastructure and data management. A platform that’s easy to buy, easy to set up, easy to change, and easy to improve—in moments, not months. FlashBlade

How nconnect works: nconnect works by opening multiple NFS sessions between the client and server. nconnect supports multiple TCP connections to the same NFS server for the same IP address at the server end. Opening multiple data paths between the client and server.

To use nconnect – it’s as simple as adding the following to your client mount options: nconnect=<value> Usage:   nconnect=<value> should be set to a number from 1 to 16 (inclusive).  This will set the number of TCP connections which the client will form between itself and the NFS server, to handle all NFS work for that version of the NFS protocol. (This setting will only take effect during the clients first mount for that NFS server. (note if the option is not specified during the first mount to that server, it’s assumed nconnect=1. nconnect man page

mount -t nfs -o ro,nconnect=16 198.18.0.100:/datasets /mnt/datasets

Emily Potyraj has a excellent article around nconnect on medium.com.

Conclusion

Do you want to super charge your NFS?

Do you want to be SUPERMAN?

Use nconnect with all your Linux NFS mounts.

timelapse photography of road with white and red lights
Photo by lalesh aldarwish on Pexels.com
About James Higley 8 Articles
James “higs” Higley is a Systems Engineer at Pure Storage [TECHNOLOGY]. Often out side of work, you can find James hanging out with his family and friends. [LIFE]

Be the first to comment

Leave a Reply

Your email address will not be published.


*