Skip to content
26 changes: 26 additions & 0 deletions group_vars/cvmfs_clients.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cvmfs_role: client

cvmfs_params:
CVMFS_MEMCACHE_SIZE: 256

CVMFS_CACHE_PRIMARY: cvmfs

CVMFS_CACHE_cvmfs_TYPE: tiered
CVMFS_CACHE_cvmfs_UPPER: disk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at this point sn09 could even use memory we have 300G of unused RAM

Copy link
Contributor

@mira-miracoli mira-miracoli Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this parameter only sets the name for the "Upper" cache manager instance
https://cvmfs.readthedocs.io/en/stable/cpt-configure.html#tiered-cache
From how I understand the docs without a plugin there is only posix.
However they recommend to set CVMFS_MEMCACHE_SIZE=256 (MB). Maybe we can also do that (or increase it even more)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have an example how to use memory here

Copy link
Contributor Author

@kysrpex kysrpex Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this comment, if at the moment there seem to be no issues every time a container job is launched let's leave the memory cache for a later stage if the need arises.

If CVMFS_MEMCACHE_SIZE is "independent" from the tiered cache system, then let's increase it. Although I am not sure it will have an effect even if "it works", since they only recommend it for pure NFS deployments.

CVMFS_CACHE_cvmfs_UPPER_READONLY: no
CVMFS_CACHE_cvmfs_LOWER: nfs
CVMFS_CACHE_cvmfs_LOWER_READONLY: no

CVMFS_CACHE_disk_TYPE: posix
CVMFS_CACHE_disk_QUOTA_LIMIT: 5000

CVMFS_CACHE_nfs_TYPE: posix
CVMFS_CACHE_nfs_ALIEN: /data/cvmfs08/cache/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this should be rewritten in terms of variables from the mounts repository.

CVMFS_CACHE_nfs_SHARED: no
CVMFS_CACHE_nfs_QUOTA_LIMIT: -1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, we need to provide a share, that is >= all cvmfs repos that we mount?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's only needed if CVMFS_CACHE_nfs_SHARED is set to yes, i.e. if the nfs cache manager instance belonged to the shared cache.

However, an alien cache cannot join the shared cache (see docs),

Since the alien cache is unmanaged, there is no automatic quota management provided by CernVM-FS; the alien cache directory is ever-growing. The CVMFS_ALIEN_CACHE requires CVMFS_QUOTA_LIMIT=-1 and CVMFS_SHARED_CACHE=no.

probably because CVMFS lacks an adequate synchronization mechanism to manage the quota in a distributed system. That's also why a script to manage the size of this cache would be needed.


galaxy_cvmfs_repos_enabled: config-repo
galaxy_cvmfs_server_urls:
- domain: galaxyproject.org
urls:
- 'http://cvmfs1-ufr0.galaxyproject.eu/cvmfs/@fqrn@'
9 changes: 0 additions & 9 deletions group_vars/sn07.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,6 @@ dynmotd_custom:
# TPV Script
tpv_config_dir_name: total_perspective_vortex

# CVMFS
cvmfs_role: client
galaxy_cvmfs_repos_enabled: config-repo

galaxy_cvmfs_server_urls:
- domain: galaxyproject.org
urls:
- "http://cvmfs1-ufr0.galaxyproject.eu/cvmfs/@fqrn@"

# SystemD
galaxy_systemd_mode: "gunicorn"
galaxy_systemd_gunicorns: 2
Expand Down
9 changes: 0 additions & 9 deletions group_vars/sn09/sn09.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,6 @@ dynmotd_custom:
# TPV Script
tpv_config_dir_name: total_perspective_vortex

# CVMFS
cvmfs_role: client
galaxy_cvmfs_repos_enabled: config-repo

galaxy_cvmfs_server_urls:
- domain: galaxyproject.org
urls:
- 'http://cvmfs1-ufr0.galaxyproject.eu/cvmfs/@fqrn@'

# SystemD
galaxy_systemd_mode: 'gunicorn'
galaxy_systemd_gunicorns: 7
Expand Down
3 changes: 3 additions & 0 deletions hosts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ cvmfs1-ufr0.internal.galaxyproject.eu
[cvmfs-stratum0]
cvmfs-stratum0.galaxyproject.eu

[cvmfs_clients:children]
sn09

[plausible]
plausible.galaxyproject.eu

Expand Down
Loading