Files
libra/doc/worker/config.rst
marcrp 2afff5c98f [WORKER] Added a gearman-poll argument
Fixes: bug #1193482

Change-Id: Ic5fc3730fba92bc6f500f0f17b78a472f5440ee5
2013-07-26 09:20:11 -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 60 seconds.

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