Describe the issue: -------------------- Enabling mdcaching on a Ganesha setup needs to be documented separately : 1. Set Attr_Expiration_Time=600 inside exports/<volname>.conf 2. Run refresh config for changes to be reflected. This is to be done in addition to setting the mdcache tunables : gluster volume set <volname> features.cache-invalidation on gluster volume set <volname> features.cache-invalidation-timeout 600 gluster volume set <volname> performance.stat-prefetch on gluster volume set <volname> performance.cache-samba-metadata on gluster volume set <volname> performance.cache-invalidation on gluster volume set <volname> performance.md-cache-timeout 600 Suggestions for improvement: ---------------------------- Include above steps to mdcache documentation as a footnote or something.
I assume this attribute belongs to Ganesha Attr_Expiration_Time=600. First of all I don't recommend enabling md-cache in Ganesha because Ganesha maintains its own cache. Secondly is there a need for Attr_Expiration_Time to be in sync with md-cache-timeout? or it just a coincidence that these values are same?
(In reply to rjoseph from comment #2) > I assume this attribute belongs to Ganesha Attr_Expiration_Time=600. First > of all I don't recommend enabling md-cache in Ganesha because Ganesha > maintains its own cache. Secondly is there a need for Attr_Expiration_Time > to be in sync with md-cache-timeout? or it just a coincidence that these > values are same? Hi Rajesh, Yes. That option value is for nfs-ganesha process and by default the value is 60sec. We have been told that there are no protocol specific recommendations done for md-cache settings unless any issues are found wrt functionality or performance. That would mean, admin/customer could try these options even on nfs-ganesha cluster setup. In order to make maximum use of caching (if enabled), we recommend to increase the cache-timeout value in ganesha layer as well to 600sec to match with md-cache timeout value.
> Yes. That option value is for nfs-ganesha process and by default the value > is 60sec. We have been told that there are no protocol specific > recommendations done for md-cache settings unless any issues are found wrt > functionality or performance. That would mean, admin/customer could try > these options even on nfs-ganesha cluster setup. In order to make maximum > use of caching (if enabled), we recommend to increase the cache-timeout > value in ganesha layer as well to 600sec to match with md-cache timeout > value. Yes, I know for testing md-cache it was told that every module and protocol should test it by enabling it. But practically speaking having two sets of cache on the same side will not benefit the user. In fact the memory consumption will go high without much gain. In your testing have seen any gain in any workload by enabling both ganesha and gluster md-cache? If not then isn't it prudent to recommend only one set of cache for Ganesha? If your team decides to go ahead with both types of cache then is it OK to add just the Ganesha specific option in a note instead of creating an entirely new section?