How To Config Remote Config

HTCondor comes with remote config disabled

This was very intentionally set so only the pool administrators can do this. However there are times when you may want to allow a limited amount. A case in point leading to this recipe was testing a new feature which allows taking a gpu offline.

Condor_config_val has two similar options: -set and -rset. The difference is that changes down with -set will be visible even after a restart. Both can be queried after a condor_reconfig.

Shared config settings

ENABLE_RUNTIME_CONFIG = TRUE
ALLOW_CONFIG = $(FULL_HOSTNAME)
SETTABLE_ATTRS_CONFIG = MYRSETVAR, MYSETVAR

This will allow MYRSETVAR and MYSETVAR to be set with -rset and be viewable after a condor_reconfig.

condor_config_val -startd -rset "MYRSETVAR=5"

condor_reconfig -startd
condor_config_val -startd MYRSETVAR

Persistent config settings

ENABLE_RUNTIME_CONFIG = TRUE
ALLOW_CONFIG = $(FULL_HOSTNAME) # host allowed to remote config
SETTABLE_ATTRS_CONFIG = MYRSETVAR, MYSETVAR
ENABLE_PERSISTENT_CONFIG = TRUE
PERSISTENT_CONFIG_DIR = $(spool)

This will allow -set and information needed to allow it to retain these values after a restart will be written to the HTCondor spool directory. This too will be visible after a condor_reconfig.

condor_config_val -set "MYSETVAR=5"

condor_reconfig -startd
condor_config_val -startd MYSETVAR