
* Split out config documentation to per-service with a common config doc * Admin API now resembles reality, updated all the calls * Customer API now has some internal links Change-Id: Ie7b57d95b5ecda9f1327b7cb97195f0927a2a877
1.5 KiB
Worker Configuration
These options are specific to the worker in addition to the common options </config>
.
Configuration File
The
[worker]
section is specific to the libra_worker utility. Below is an example:[worker] driver = haproxy reconnect_sleep = 60 server = 10.0.0.1:8080 10.0.0.2:8080
Command Line Options
libra_worker
--driver <DRIVER>
Load balancer driver to use. Valid driver options are:
- haproxy - HAProxy software load balancer. This is the default driver.
-s <SECONDS>, --reconnect_sleep <SECONDS>
The number of seconds to sleep between job server reconnect attempts when no specified job servers are available. Default is 60 seconds.
--server <HOST:PORT>
Used to specify the Gearman job server hostname and port. This option can be used multiple times to specify multiple job servers.
--syslog
Send log events to syslog.
--syslog-socket
Socket to use for the syslog connection. Default is /dev/log.
--syslog-facility
Syslog logging facility. Default is LOCAL7.
--stats-poll <SECONDS>
The number of seconds to sleep between statistics polling of the load balancer driver. Default is 300 seconds.