-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to configure and populate an alien cache #37
Comments
It is a basic configuration but works for backends not connected to the internet. A more complex configuration is documented at https://cvmfs.readthedocs.io/en/stable/cpt-configure.html#example |
Note that populating the cache is a bit flaky so you may need to run it a few times before things are fully populated. |
Also note that we can easily restrict what is cached using a dirtab file, see https://cvmfs.readthedocs.io/en/stable/cpt-hpc.html#preloading-the-cernvm-fs-cache so we can restrict ourselves to specific releases/arch (or even more fine-grained control) |
Public keys should be served via HTTPS (for production use anyway). |
FYI This script allows running MPI applications on workers that are not connected to the internet:
|
Script updated to allow us to query what arch directory we should be pre-populating our alien cache with (rather than pulling in every arch) |
Just to also log this somewhere: your script was aimed at using an alien cache on a system where the batch nodes don't have internet access. Another use case for the alien cache is if you want to use the E.g. simply bind mounting a local dir and then starting a parallel run
Typically fails with the error I've adapted the above script somewhat to remove the preloading, make the lower cache writable, and set a the proxy to
I then create a script for the commands I want to run in the container:
And finally create a job script:
This works fine for me :) Note that for 'laptop users' we could make it even simpler: we don't need the tiered caches, and probably just configuring a single, alien cache is sufficient to make it shareable between multiple MPI processes. |
@casparvl Yeah, there are a few different configurations that should be documented here. I wonder is it worth creating something that will generate the right setup for you based on a few settings? Is it complicated enough to consider moving from bash to python? |
Yeah, this would be an option. Just as an idea, I think something with arguments like
would be sufficient to cover most scenarios I think.
|
Add Ansible task for making symlinks to host files/directories
This is a (basic) script to create and populate a CVMFS alien cache for use on systems that do not have access to the internet (but you do require internet access to perform the initial run of the script).
The text was updated successfully, but these errors were encountered: