Files can be uploaded from the host running the CLI and made available to jobs using the
--input option. For example:
prominence create --input /home/alahiff/README alahiff/testpi:latest "cat README"
The files will be written in the job’s current directory, also referred to by the HOME, TMP or TEMP environment variables. Note that large data files should not be provided to jobs this way, and there is a total size limit of 1 MB per file.
Artifacts can either be obtained from remote URLs before jobs are executed. Using the
--artifact option you can specify a URL. For example:
prominence create --artifact https://raw.githubusercontent.com/giovtorres/docker-centos7-slurm/master/Dockerfile busybox /bin/ls
Archives with filenames ending in the following are automatically unpacked:
Users can upload data to the object storage which can be staged-in to jobs.
Users can upload artifacts (including container images) using the
upload command. The path of the file to be uploaded needs to be specified in addition to a reference name for the file which will be used later in order to access the file.
prominence upload --name myfile --filename /data/myfile
It is entirely up to the user to ensure that the names do not clash, however different users can use the same names without problems. Note that the name is arbitrary and doesn’t have to be the same as the actual filename.
Note: There is a limit of 5 GB for a single file.
For the case of input files, include an artifact using the name specified when the file was uploaded, e.g.
prominence upload --name input.txt --filename input.txt prominence create --artifact input.txt busybox "cat input.txt"
Any such input files will be automatically copied from object storage before the job starts running.
For the case of a container image, define the image name using the name specified when the image was uploaded, e.g.
prominence upload --name myimage.sif --filename myimage.sif prominence create myimage.sif
Note: The existence of input files and container images on object storage is checked upon job submission. Job submission will fail and an error will be returned if an input file or container image does not exist.
There is an
ls command which enables files which have been uploaded to be listed:
prominence ls -l
-l option results in object sizes and last modification dates being listed in addition to object names.
When a file is uploaded using
prominence upload the SHA256 checksum of the file is calculated and this is stored as metadata associated with the file in object storage. Alternatively users can specify a checksum using the
--checksum option to
The checksum is most important for container images as it enables images to be cached on the workers and re-used as necessary. After an image is pulled by a job it is copied to a cache directory. If a job running on the same worker requires an image with the same checksum as a file in the cache the cached image is used and no download is required. Caching applies to:
- Singularity: images from container registries and object storage,
- udocker: images from object storage only.
Caching of course gives the best performance improvements for large numbers of short-running jobs, especially if the container image is large.