.TH "work_queue_factory" 1 "" "CCTools 7.1.2 FINAL" "Cooperative Computing Tools" .SH NAME .LP \fBwork_queue_factory\fP - maintain a pool of Work Queue workers on a batch system. .SH SYNOPSIS .LP \FC\fBwork_queue_factory -M -T [options]\fP\FT .SH DESCRIPTION .LP \fBwork_queue_factory\fP submits and maintains a number of \fBwork_queue_worker(1)\fP processes on various batch systems, such as Condor and SGE. All the workers managed by a \fBwork_queue_factory\fP process will be directed to work for a specific master, or any set of masters matching a given project name. \fBwork_queue_factory\fP will automatically determine the correct number of workers to have running, based on criteria set on the command line. The decision on how many workers to run is reconsidered once per minute. .PP By default, \fBwork_queue_factory\fP will run as many workers as the indicated masters have tasks ready to run. If there are multiple masters, then enough workers will be started to satisfy their collective needs. For example, if there are two masters with the same project name, each with 10 tasks to run, then \fBwork_queue_factory\fP will start a total of 20 workers. .PP If the number of needed workers increases, \fBwork_queue_factory\fP will submit more workers to meet the desired need. However, it will not run more than a fixed maximum number of workers, given by the -W option. .PP If the need for workers drops, \fBwork_queue_factory\fP does not remove them immediately, but waits to them to exit on their own. (This happens when the worker has been idle for a certain time.) A minimum number of workers will be maintained, given by the -w option. .PP If given the -c option, then \fBwork_queue_factory\fP will consider the capacity reported by each master. The capacity is the estimated number of workers that the master thinks it can handle, based on the task execution and data transfer times currently observed at the master. With the -c option on, \fBwork_queue_factory\fP will consider the master's capacity to be the maximum number of workers to run. .PP If \fBwork_queue_factory\fP receives a terminating signal, it will attempt to remove all running workers before exiting. .SH OPTIONS .LP .SS Batch Options .LP .LP .TP \fB-M\fP, \fB-\-master-name\fP=\fI\fP . Project name of masters to serve, can be a regular expression. .TP \fB-F\fP, \fB-\-foremen-name\fP=\fI\fP . Foremen to serve, can be a regular expression. .TP .BI \ --catalog \ . Catalog server to query for masters (default: catalog.cse.nd.edu,backup-catalog.cse.nd.edu:9097). .TP \fB-T\fP, \fB-\-batch-type\fP=\fI\fP . Batch system type (required). One of: local, wq, condor, sge, torque, mesos, k8s, moab, slurm, chirp, amazon, lambda, dryrun, amazon-batch .TP \fB-B\fP, \fB-\-batch-options\fP=\fI\fP . Add these options to all batch submit files. .TP \fB-P\fP, \fB-\-password\fP=\fI\fP . Password file for workers to authenticate to master. .TP \fB-C\fP, \fB-\-config-file\fP=\fI\fP . Use the configuration file . .TP \fB-w\fP, \fB-\-min-workers\fP=\fI\fP . Minimum workers running. (default=5) .TP \fB-W\fP, \fB-\-max-workers\fP=\fI\fP . Maximum workers running. (default=100) .TP .BI \ --workers-per-cycle \ . Maximum number of new workers per 30 seconds. ( less than 1 disables limit, default=5) .TP .BI \ --tasks-per-worker \ . Average tasks per worker (default=one task per core). .TP \fB-t\fP, \fB-\-timeout\fP=\fI