From 52fb6d082832d4c763e3168138719ff2b292e8bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Thu, 23 May 2024 16:37:28 +0000
Subject: [PATCH] Shorten WebDAV cache on LOT3 demo and sync with devel
 instance

---
 cesnet-central/deployments/fullhub.yaml | 2 +-
 demo/deployments/hub.yaml               | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml
index cbc6b60..999915c 100644
--- a/cesnet-central/deployments/fullhub.yaml
+++ b/cesnet-central/deployments/fullhub.yaml
@@ -236,7 +236,7 @@ hub:
                         {"name": "WEBDAV_VENDOR", "value": "other"},
                         # XXX: strict permissions needed for .local/share/jupyter/runtime/jupyter_cookie_secret
                         # quicker directory cache and polling
-                        {"name": "MOUNT_OPTS", "value": "--file-perms=0600 --dir-perms=0770 --dir-cache-time=1m0s --poll-interval=0m30s"},
+                        {"name": "MOUNT_OPTS", "value": "--file-perms=0600 --dir-perms=0770 --dir-cache-time=1m0s --poll-interval=0m20s"},
                         {"name": "MOUNT_PATH", "value": "/owncloud"},
                         # default mode is "full"
                         {"name": "VFS_CACHE_MODE", "value": "full"},
diff --git a/demo/deployments/hub.yaml b/demo/deployments/hub.yaml
index fff50ee..70e9dec 100644
--- a/demo/deployments/hub.yaml
+++ b/demo/deployments/hub.yaml
@@ -258,8 +258,11 @@ hub:
                         {"name": "WEBDAV_URL", "value": "https://ocis.aaitest.owncloud.works/remote.php/webdav/"},
                         {"name": "WEBDAV_VENDOR", "value": "other"},
                         # XXX: strict permissions needed for .local/share/jupyter/runtime/jupyter_cookie_secret
-                        {"name": "MOUNT_OPTS", "value": "--file-perms=0600 --dir-perms=0770"},
+                        # quicker directory cache and polling
+                        {"name": "MOUNT_OPTS", "value": "--file-perms=0600 --dir-perms=0770 --dir-cache-time=1m0s --poll-interval=0m20s"},
                         {"name": "MOUNT_PATH", "value": "/owncloud"},
+                        # default mode is "full"
+                        {"name": "VFS_CACHE_MODE", "value": "full"},
                     ],
                     "resources": self.sidecar_resources,
                     "securityContext": {
-- 
GitLab