A [global_config]
section may be defined in the qbwrk.conf file to set up global qbwrk.conf configurations.
Currently, it supports the following two parameters, used primarily to optimize the loading time of qbwrk.conf:
templates
: explicitly list all template names in the qbwrk.conf file
non_existent
: explicitly list all non_existent hostnames that are listed in qbwrk.conf
During the loading of the qbwrk.conf file, if a section name like [name]
is encountered, the "name" is assumed to be a valid hostname of a worker that is online and accessible, and the supervisor tries to look up the IP address from the name.
In certain network setups, if the "name" is actually a qbwrk.conf template name or a hostname of a non-existent (offline or inaccessible) worker, this can slow things down quite a bit since each such lookup needs to time out. In those situations, the above two parameters, "templates" and "non_existent" in the [global_config]
section can be properly set up to optimize the loading time for qbwrk.conf, which in turn speeds up the execution of `qbadmin w -reconfig` and also the supervisor boot process.
[global_config]
templates = centos,ubuntu
non_existent = render[071-100],render123,render155
[centos]
worker_cluster = /projects/foobar
[ubuntu]
worker_cluster = /projects/secret
[render[001-200]]
worker_groups = "dedicated"
In the example above, the section names "centos" and "ubuntu" are listed in the global_config's "templates" parameter, and also the machines "render[071-100],render123,render155" are listed as "non_existent". The supervisor, when loading the qbwrk.conf file, skips the IP address lookup for these listed names, thereby speeding up the process.
Note that in the example, it is assumed that the "non_existent" machines are not online, perhaps taken down for maintenance, and therefore the site administrator has listed them there.
Also note that numerical range expansions are allowed in the value of the "non_existent" parameter (as in "render[071-100]"), to conveniently specify a contiguous chunk of hostnames.