From d4431f41bdca025dce4b78c91651a4af422b793b Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Mon, 26 Aug 2024 15:44:08 +0300 Subject: [PATCH] doc/rgw/d3n: pass cache dir volume to extra_container_args Fixes: https://tracker.ceph.com/issues/66492 Signed-off-by: Mark Kogan (cherry picked from commit 4594e38bf19a8f73191904f5f373a3707cddd2f3) --- doc/radosgw/d3n_datacache.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/radosgw/d3n_datacache.rst b/doc/radosgw/d3n_datacache.rst index 12d2850a594ad..28c7995301b8e 100644 --- a/doc/radosgw/d3n_datacache.rst +++ b/doc/radosgw/d3n_datacache.rst @@ -82,6 +82,14 @@ is mounted at `/mnt/nvme0` and has `10 GB` of free space available for the cache The persistent path directory has to be created before starting the Gateway. (``mkdir -p /mnt/nvme0/rgw_datacache/client.rgw.8000/``) +In containerized deployments the cache directory should be mounted as a volume:: + + extra_container_args: + - "-v" + - "/mnt/nvme0/rgw_datacache/client.rgw.8000/:/mnt/nvme0/rgw_datacache/client.rgw.8000/" + +(Reference: `Service Management - Mounting Files with Extra Container Arguments`_) + If another Gateway is co-located on the same machine, configure it's persistent path to a discrete directory, for example in the case of `[client.rgw.8001]` configure ``rgw_d3n_l1_datacache_persistent_path = "/mnt/nvme0/rgw_datacache/client.rgw.8001/"`` @@ -114,3 +122,4 @@ The following D3N related settings can be added to the Ceph configuration file .. _Rados Gateway Compression: ../compression/ .. _Rados Gateway Encryption: ../encryption/ .. _RGW Data cache and CDN: ../rgw-cache/ +.. _Service Management - Mounting Files with Extra Container Arguments: ../cephadm/services/#mounting-files-with-extra-container-arguments -- 2.39.5