Latest stable version: https://github.com/HEP-Puppet/htcondor/releases/tag/v2.0.1
Development branch: https://github.com/HEP-Puppet/htcondor/tree/development
Puppetforge: https://forge.puppetlabs.com/HEPPuppet/htcondor
- Overview - What is the htcondor module?
- Module Description - What does the module do?
- Setup - The basics of getting started with htcondor
- Singularity container support
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
The htcondor modules allows you to set up a HTCondor cluster (https://research.cs.wisc.edu/htcondor/). It depends on several other modules, including puppetlabs/(stdlib|concat|firewall). Please check the metadata.json for detailed dependencies.
An HTCondor cluster consists of at least three types of nodes:
- a worker for executing the jobs
- a scheduler for job submission
- a collector/negotiator to match jobs with workers
This puppet modules allows for the configuration of these three types of nodes.
What the htcondor module affects:
- configuration files and directories (/etc/condor/*)
- installation of htcondor software (condor* packages)
- a new fact for facter: condor_version
Since admins might wish to run their own repository or disable repositories after install, the HTCondor repository is no longer included in the Puppet module since version 2.0.0. Therefore, the first step is to install the latest HTCondor repository for your OS (https://research.cs.wisc.edu/htcondor/yum/):
yum install -y https://research.cs.wisc.edu/htcondor/yum/repo.d/htcondor-stable-rhel6.repo
If you wish to use a pool password for authentication you will need to create one first: condor_store_cred -f <path_to_htcondor_module>/files/pool_password
.
hiera
config examples can be found in the examples folder. They describe a minimal example of
- settings shared across different node types:
htcondor_common.yaml
- settings for managers (nodes that run collector & negotiator daemons):
htcondor_manager.yaml
- settings for schedulers:
htcondor_scheduler.yaml
- settings for worker nodes:
htcondor_common.yaml
The examples assume class management in hiere by addinghiera_include('classes')
to thesite.pp
. Real life examples can be found in https://github.com/uobdic/UKI-SOUTHGRID-BRIS-HEP.
Sometimes it is necessary to create custom attributes for condor. Machine attributes can be used
in job requirements (e.g. HasMatLab = True
) and job attributes for job reporting/monitoring (e.g. HEPSPEC06 = 14.00
).
To specify the attributes in hiera simply add
htcondor::custom_attributes:
- HasMatLab: True
...
and for job attributes
htcondor::custom_job_attributes:
- HEPSPEC06: 14.00
- CPUScaling: 1.04
...
Although the use is identical, they are put into different places. custom_attributes
end up added to the STARTD_ATTRS
and custom_job_attributes
are added to STARTD_JOB_ATTRS
.
The module also provides support for Singularity containers to the extent to which this is implemented in HTCondor. As compared to e.g. Docker containers, Singularity containers are less isolated and can run without a privileged daemon, granting the user the same permissions inside the container as the user would have on the underlying host. Hence, they are ideal to run HPC jobs.
Example configuration parameters could be:
use_singularity => true,
force_singularity_jobs => true,
singularity_image_expr => "/images/myimage.img",
singularity_bind_paths => ['/some_shared_filesystem', '/pool', '/usr/libexec/condor/'],
singularity_target_dir => '/srv',
starter_job_environment => { 'SINGULARITY_HOME' => '/srv' },
mount_under_scratch_dirs => ['/tmp','/var/tmp'],
This forces all jobs to run inside Singularity containers, while offering tmp
space inside the container, and binding a shared filesystem mount point and HTCondor-specific directories inside.
The binding of the two HTCondor specific directories is a workaround to allow interactive jobs to run, this will hopefully be fixed in a future HTCondor release.
The same holds for setting SINGULARITY_HOME
: This ensures non-interactive jobs start in the job's working directory instead of the user's home directory which might not even be accessible from the worker.
The Image may also be an expression to allow for user configuration, more details on that are provided in the HTCondor documentation.
Please run
bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'
and make sure no errors are present when submitting code.
github_changelog_generator -u hep-puppet -p htcondor