]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-nfs: allow disabling ganesha caching
authorRamana Raja <rraja@redhat.com>
Mon, 9 Apr 2018 12:03:33 +0000 (17:33 +0530)
committerSébastien Han <seb@redhat.com>
Wed, 11 Apr 2018 11:56:40 +0000 (13:56 +0200)
commit4a430ae29a736e47477e5898ec8ad545831cc793
tree840146b48c473927d5e1ed509c758fa502f185d8
parent82ccbdafbcbba788cc46b8ef4166600ff80b5729
ceph-nfs: allow disabling ganesha caching

Add a variable, ceph_nfs_disable_caching, that if set to true
disables ganesha's directory and attribute caching as much as
possible.

Also, disable caching done by ganesha, when 'nfs_file_gw'
variable is true, i.e., when Ganesha is used as CephFS's gateway.
This is the recommended Ganesha setting as libcephfs already caches
information. And doing so helps avoid cache incoherency issues
especially with clustered ganesha over CephFS.

Fixes: https://tracker.ceph.com/issues/23393
Signed-off-by: Ramana Raja <rraja@redhat.com>
roles/ceph-nfs/defaults/main.yml
roles/ceph-nfs/templates/ganesha.conf.j2