The module allows to install and configure a COBalD and TARDIS service to manage opportunistic resources.
COBalD version to be used. Possible values are undef
= latest PyPI release, 'master'
= Github master branch or the PyPI release number.
TARDIS version to be used. Possible values are undef
= latest PyPI release, 'master'
= Github master branch or the PyPI release number.
Authentication method used by local batch system (LBS).
COBalD service principal keytab file name (if LBS uses Kerberos authentication).
hostname of host to access LBS (if ssh authentication is used to access LBS)
user name to be used for ssh access to LBS (if ssh authentication is used to access LBS)
public ssh host key (if ssh authentication is used to access LBS)
encryption type of ssh host key (if ssh authentication is used to access LBS)
file name of ssh private key used to access LBS (if ssh authentication is used to access LBS)
type of ssh key used to access LBS (if ssh authentication is used to access LBS)
Whether SSH multiplexing should be set up for the cobald
user to reduce latency and improve reliability.
Whether to perform cleanup of job output files via SSH to ssh_hostname once per day.
Pattern of files to delete when ssh_perform_output_cleanup
is enabled.
Authentication method used by overlay batch system (OBS).
Should this module manage Certificate Authorities (CAs) (including CRLs).
Repository URL from which to fetch CAs.
Array containing names of CA packages.
COBalD robot key file name (if OBS uses GSI authentication).
COBalD robot certificate file name (if OBS uses GSI authentication).
Add a Zabbix parameter (robotcert.expiration_days
) to monitor the validity of the COBalD robot certificate (if OBS uses GSI authentication). Defaults to false
to keep Zabbix an optional dependency.
Array of distringuished names (DNs) to be added to HTCondor variable GSI_DAEMON_NAME
.
Hash of additional ClassAd attributes to add to the pilot JDL. Only useful for the HTCondor LBS. Note that the value of the has is passed as-is, i.e. for string values, they need to be enquoted. This allows to also pass ClassAd expressions if wanted.
Here is an example how to use this module:
class { 'cobald':
cobald_version => 'master',
tardis_version => 'master',
# auth_lbs => ['krb5', 'ssh'],
auth_lbs => ['krb5'],
filename_cobald_keytab => "${module_name}/cobald/cobald-cobald.mytier3.edu.keytab",
# ssh_hostname => 'myremotetier3.edu',
# ssh_username => 'cobald',
# ssh_pubhostkey => 'SomeLongStringOfGibberish',
# ssh_hostkeytype => 'ecdsa-sha2-nistp256',
# ssh_privkey_filename => "${module_name}/cobald/sshkeys/cobald@myremotetier3.edu",
# ssh_keytype => 'ed25519',
auth_obs => 'gsi',
manage_cas => true,
filename_cobald_robot_key => "${module_name}/cobald/robotcert/cobald-robot-key.pem",
filename_cobald_robot_cert => "${module_name}/cobald/robotcert/cobald-robot-cert.pem",
gsi_daemon_dns => [
'/C=DE/O=GermanGrid/OU=mytier1/CN=htcondor.mytier1.edu',
'/C=DE/O=GermanGrid/OU=mytier1/CN=arc.mytier1.edu',
'/C=DE/O=GermanGrid/OU=mytier3/CN=Robot - My COBalD TARDIS Drone Service',
],
}
$mytier3_cobald_conf = {
'pipeline' => [
{
'__type__' => 'cobald.controller.linear.LinearController',
# if min(cpu_ratio, memory_ratio) drops below given value, nodes are drained
'low_utilisation' => 0.75,
# if max(cpu_ratio, memory_ratio) exceeds given value, nodes are spawned
'high_allocation' => 0.8,
# rate (cores/second) to increase or reduce cores
'rate' => 1,
},
{
'__type__' => 'cobald.decorator.limiter.Limiter',
# leave at least one core
'minimum' => 1,
},
{
'__type__' => 'cobald.decorator.logger.Logger',
'name' => 'changes',
},
{
'__type__' => 'tardis.resources.poolfactory.create_composite_pool',
'configuration' => '/etc/cobald/mytier3/tardis.yml',
},
],
'logging' => {
'version' => 1,
'root' => {
'level' => 'DEBUG',
'handlers' => ['console', 'file'],
},
'formatters' => {
'precise' => {
'format' => '%(name)s: %(asctime)s %(message)s',
'datefmt' => '%Y-%m-%d %H:%M:%S',
}
},
'handlers' => {
'console' => {
'class' => 'logging.StreamHandler',
'formatter' => 'precise',
'stream' => 'ext://sys.stdout',
},
'file' => {
'class' => 'logging.handlers.RotatingFileHandler',
'formatter' => 'precise',
'filename' => '/var/log/cobald/mytier3/tardis.log',
'maxBytes' => 10485760,
'backupCount' => 3,
}
}
},
}
$mytier3_tardis_conf = {
'Plugins' => {
'SqliteRegistry' => {
'db_file' => '/var/lib/cobald/mytier3/drone_registry.db',
}
},
'BatchSystem' => {
'adapter' => 'HTCondor',
# cache condor_status output for 1 minute
'max_age' => 1,
# used to calculate utilisation and allocation
'ratios' => {
# relative used CPU number
'cpu_ratio' => 'Real(TotalSlotCpus-Cpus)/TotalSlotCpus',
# relative used memory
'memory_ratio' => 'Real(TotalSlotMemory-Memory)/TotalSlotMemory',
},
'options' => {
'pool' => 'htcondor.mytier1.edu',
},
},
'Sites' => [
{
'name' => 'SITE-NAME',
'adapter' => 'HTCondor',
# max. number of offered CPUs
'quota' => 5,
},
],
'SITE-NAME' => {
# cache condor_q output for 1 minute
'max_age' => 1,
'MachineTypes' => [
'atlas_singlecore',
'atlas_eightcore',
],
'MachineTypeConfiguration' => {
'atlas_singlecore' => {
'jdl' => '/etc/cobald/mytier3/atlas-pilot.jdl',
},
'atlas_eightcore' => {
'jdl' => '/etc/cobald/mytier3/atlas-pilot.jdl',
},
'belle_singlecore' => {
'jdl' => '/etc/cobald/mytier3/belle-pilot.jdl',
},
'belle_eightcore' => {
'jdl' => '/etc/cobald/mytier3/belle-pilot.jdl',
},
'MachineMetaData' => {
'atlas_singlecore => {
'Cores' => 1,
'Memory' => 2.5,
'Disk' => 20,
},
'atlas_eightcore' => {
'Cores' => 8,
'Memory' => 14,
'Disk' => 160,
},
'belle_singlecore' => {
'Cores' => 1,
'Memory' => 2.5,
'Disk' => 20,
},
'belle_eightcore' => {
'Cores' => 8,
'Memory' => 20,
'Disk' => 160,
},
},
},
},
}
cobald::instance { 'mytier3':
ensure => 'present',
activate_service => true,
cobald_conf => $mytier3_cobald_conf,
tardis_conf => $mytier3_tardis_conf,
supported_vos => ['atlas', 'belle'],
additional_pilot_attributes => {
'+ContainerOS' => '"CentOS7_pilot"',
'+CephFS_IO' => '"none"',
},
pilot_logs_keep_time => '14d',
}
This module has only been tested on CentOS 7 and CentOS 8 so far.