From 9c14446e81a0071c60b48e4ef13dd91217c6afdd Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Wed, 7 Oct 2020 20:37:52 -0300 Subject: [PATCH] Disable caching done by ganesha Disable caching done by ganesha when ganesha is used as CephFS's gateway (manila's usecase) This is the recommended Ganesha setting as libcephfs already caches information. Doing so helps avoid cache incoherency issues. Change-Id: Iacd575ac61b39ab9dcf8814514b5e3267570a17f Closes-Bug: #1898950 --- devstack/lib/ceph | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index fbe6ce0..9b741bc 100755 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -776,6 +776,21 @@ RADOS_URLS { ceph_conf = ${CEPH_CONF_FILE}; userid = admin; } + +CACHEINODE { + Dir_Max = 1; + Dir_Chunk = 0; + + Cache_FDs = false; + + NParts = 1; + Cache_Size = 1; +} + +EXPORT_DEFAULTS { + Attr_Expiration_Time = 0; +} + %url rados://${CEPHFS_DATA_POOL}/ganesha-export-index EOF else