Sign inSign up

legacyphp/gearman

By legacyphp

Updated over 3 years ago

Image
0

406

legacyphp/gearman repository overview

Gearman docker

Supported gearmand backends

  • builtin (default)
  • libmemcached
  • mysql (using mariadb-dev)
  • redis

Docker repository

Docker Hub
docker pull legacyphp/gearman:latest

GitHub Packages
docker pull ghcr.io/phplegacy/gearman-docker:latest

Usage

Example: docker-compose.yml

docker run --rm -i legacyphp/gearman:latest --help

Use redis backend and set verbose level to DEBUG.

docker run --rm -i legacyphp/gearman:latest --queue-type=redis --redis-server=192.168.1.1 --redis-port=6379 --verbose=DEBUG

Environment variables

This image includes an entry point that translates environment strings into configuration attributes.
The following is a list of the strings currently supported:

NameDescriptionDefault
VERBOSELogging levelINFO
QUEUE_TYPEPersistent queue type to usebuiltin
THREADSNumber of I/O threads to use4
BACKLOGNumber of backlog connections for listen32
FILE_DESCRIPTORSNumber of file descriptors to allow for the processDefault is max allowed for user
JOB_RETRIESNumber of attempts to run the job before the job server removes it. Default is no limit.0
ROUND_ROBINAssign work in round-robin order per worker connection0
WORKER_WAKEUPNumber of workers to wakeup for each job received0
KEEPALIVEEnable keepalive on sockets0
KEEPALIVE_IDLEThe duration between two keepalive transmissions in idle condition30
KEEPALIVE_INTERVALThe duration between two successive keepalive retransmissions, if acknowledgement to the previous keepalive transmission is not received10
KEEPALIVE_COUNTThe number of retransmissions to be carried out before declaring that remote end is not available5
MYSQL_HOSTMysql server hostlocalhost
MYSQL_PORTMysql server port3306
MYSQL_USERMysql server userroot
MYSQL_PASSWORDMysql password
MYSQL_PASSWORD_FILEPath to file with mysql password(Docker secrets)
MYSQL_DBDatabase to use by GearmanGearmand
MYSQL_TABLETable to use by Gearmangearman_queue

You can also inject your version of config file to /etc/gearmand.conf as needed.

Credits

License

The MIT License (MIT). Please see License File for more information.


If you like this project, please consider giving it a ⭐

Tag summary

Content type

Image

Digest

sha256:5c1b4cb4b

Size

10.7 MB

Last updated

over 3 years ago

docker pull legacyphp/gearman