libra/doc/worker/config.rst
David Shrewsbury 7b354f5086 [DOCS] Fix gearman-poll default value.
Change-Id: Ic79158d7ccc950d50154b9ca552ab4f4f24cac43
2013-08-06 14:45:24 -04:00

2.1 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.

--gearman_ssl_ca <FILE>

Full path to the file with the CA public key to use when connecting to an SSL-enabled Gearman job server. This is used to validate the server key.

--gearman_ssl_cert <FILE>

Full path to the file with the SSL public key to use when connecting to an SSL-enabled Gearman job server.

--gearman_ssl_key <FILE>

Full path to the file with the SSL private key to use when connecting to an SSL-enabled Gearman job server.

-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.

--stats-poll <SECONDS>

The number of seconds to sleep between statistics polling of the load balancer driver. Default is 300 seconds.

--gearman-poll <SECONDS>

The number of seconds gearman will poll before re-shuffling its connections. Default is 1 second.

--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.