Bug 1387592

Summary: [Doc RFE] Document section needed for md-cache performance enhancement
Product: Red Hat Gluster Storage Reporter: rjoseph
Component: doc-Administration_GuideAssignee: Bhavana <bmohanra>
doc-Administration_Guide sub component: Default QA Contact: surabhi <sbhaloth>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: asriram, mhideo, nlevinki, pgurusid, rcyriac, rhinduja, rhs-bugs, rjoseph, rwheeler, storage-doc
Version: rhgs-3.2Keywords: FutureFeature
Target Milestone: ---   
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-24 10:19:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1351549    

Description rjoseph 2016-10-21 10:44:00 UTC
Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information: 
RFE Bug
https://bugzilla.redhat.com/show_bug.cgi?id=1387563

Comment 4 Poornima G 2016-11-15 06:06:35 UTC
With this release, metadata cache on the client side is integrated with the cache-invalidation feature so that the clients can cache longer without compromising on consistency.
    By enabling, the metadata cache and cache invalidation feature and extending the cache timeout to 600s, we have seen performance improvements in metadata operation like creates, ls/stat, chmod, rename, delete.
    The perf improvements is significant in SMB access of gluster volume, but as a cascading effect the improvements is also seen on FUSE/Native access and NFS access.

Use the below options in the order mentioned, to enable the features:
  # 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-invalidation on
  # gluster volume set <volname> performance.cache-samba-metadata on     #Need to be set only for SMB access
  # gluster volume set <volname> performance.md-cache-timeout 600

Comment 7 Bhavana 2016-11-28 04:30:01 UTC
Hi Poornima,

As discussed, I have created a new section named "Tuning Performance":

http://ccs-jenkins.gsslab.brq.redhat.com:8080/job/doc-Red_Hat_Gluster_Storage-3.2-Administration_Guide-branch-bz-1374150-gluster_nfs_off_by_default/lastSuccessfulBuild/artifact/tmp/en-US/html-single/index.html#idm140371751126480

Let me know, if there are any more details required to be added in this section. If it looks Ok i shall move it to on_qa

Comment 8 Poornima G 2016-11-30 11:40:44 UTC
The doc text looks good. I also have one more additional command to be added in section "7.3.7.1. Enabling Metadata Caching" as a 4th point:

4. To increase the number of files that can be cached:
# gluster volume set <VOLNAME> network.inode-lru-limit <n>
where n by default is 16384, it can be increased if the number of active files in the volume is very high. Note that increasing this number increases the memory footprint of the brick processes.


Rajesh,
Can you please take a look at this, Do we need to provide a number in the command?

Comment 9 Bhavana 2016-12-06 03:57:09 UTC
Hi Poornima,

I have updated the section accordingly.

http://ccs-jenkins.gsslab.brq.redhat.com:8080/job/doc-Red_Hat_Gluster_Storage-3.2-Administration_Guide-branch-bz-1374150-gluster_nfs_off_by_default/lastSuccessfulBuild/artifact/tmp/en-US/html-single/index.html#idm140484642738080

Rajesh,

Let me know if you have any further comments before I move this bug on qa.

Comment 10 rjoseph 2016-12-06 11:05:23 UTC
Poornima: We need not provide a number for inode-lru-limit as of now. It should be derived from workload.

Bhavana: As discussed we should move the md-cache section under the performance improvement of RHGS section. Samba section should refer to the new performance section.

Comment 11 Bhavana 2016-12-07 07:38:14 UTC
Based on my meeting with Rajesh and Poornima, the section is now moved to Chapter 13 Configuring Red Hat Gluster Storage for Enhancing Performance as Section 13.1 Directory Operations.

Minor edits were made to this section to generalize the statement wrt RHGS instead of just SMB.

A link to section 13.1 is provided in the SMB section "Sharing Volumes over SMB"

http://ccs-jenkins.gsslab.brq.redhat.com:8080/job/doc-Red_Hat_Gluster_Storage-3.2-Administration_Guide-branch-bz-1374150-gluster_nfs_off_by_default/lastSuccessfulBuild/artifact/tmp/en-US/html-single/index.html#sect-Directory_Operations

Comment 13 surabhi 2017-02-07 10:00:58 UTC
The content is fine as mentioned in the link but as per recent decision on providing a single cli option to perform all these md-cache related changes via one command https://bugzilla.redhat.com/show_bug.cgi?id=1417955 , we need to add the cli option as well to the performance section.

Moving this bug back to assigned as it needs some new changes to be added.

Comment 15 surabhi 2017-02-21 13:22:07 UTC
Looks good.Moving the doc to verified.

Comment 16 Rejy M Cyriac 2017-03-24 10:19:41 UTC
RHGS 3.2.0 GA completed on 23 March 2017