[Gluster-users] Increase cache lifetime on client

Amar Tumballi
Mon, 23 May 2011 13:16:38 -0000

>
>
> In other words I want to prevent glusterfs of querying brick on every
> request and use cached version instead. It is ok if such checks will
> be once a min, but not on every request,please. Is it possible?
>

Yes, fuse provides such options. But sadly, mount.glusterfs doesn't handle
these options as of now. But you can start glusterfs process with all
options mount -t glusterfs will use, added with  "--entry-timeout 60"
and
"--attribute-timeout 60" (values are in seconds). As a warning note,
if you
are having lot of rename calls, (or many clients trying to create files with
same name (ie, path is same)), you may get some 'stale file handle' type
of
errors.

Regards,
Amar
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://supercolony.gluster.org/pipermail/gluster-users/attachments/20110523/2d6f5bfb/attachment.html>