GEARMAN(1)

πŸ’– NAME πŸ’–

gearman β€” Gearmand Documentation, https://gearman.org/gearmand/. Basically this is the command line client for Gearmand, bestie, and this page is GEARMAN(1) πŸŽ€βœ¨


✨ SYNOPSIS ✨

Okay so here's the lineup: common options first, then client options, then worker options. All the facts are below, no cap πŸ’…

🌈 Common options

  • -f <function> β€” Function name to use for jobs (and yes, you can give many 🫢).
  • -h <host> β€” Job server host.
  • -H β€” Print this help menu.
  • -p <port> β€” Gearman server port.
  • -t <timeout> β€” Timeout in milliseconds.
  • -i <pidfile> β€” Create a pidfile for the process.
  • -n β€” In client mode run one job per line; in worker mode send data packet for each line.
  • -N β€” Same as -n, but strip off the newline.
  • -S β€” Enable SSL connections. Certificate paths are taken from the environment variables GEARMAND_CA_CERTIFICATE, GEARMAN_CLIENT_PEM, and GEARMAN_CLIENT_KEY environment variables or from the libgearman compile-time defaults πŸ”

πŸ’… Client options

  • --ping β€” Send an ECHO request to the job server and exit. No worker is required. Useful as a connectivity / health check. Exit status is 0 on success, non-zero on failure. When -t is omitted, a 2-second timeout is used. With -v, it prints ping OK on success. Obsessed with a good health check. 🩺
  • -b β€” Run jobs in the background.
  • -I β€” Run jobs as high priority.
  • -L β€” Run jobs as low priority.
Priority tea β˜•: job assignment priority is global across registered functions: a high priority job for any function is assigned before normal or low priority jobs for other functions. Periodt.
  • -P β€” Prefix all output lines with functions names.
  • -s β€” Send job without reading from standard input.
  • -u <unique> β€” Unique key to use for job.

πŸ› οΈ Worker options* πŸ› οΈ

Yes, the little * is part of the name. Iconic.

  • -c <count> β€” Number of jobs for worker to run before exiting.
  • -w β€” Run in worker mode.

🌸 DESCRIPTION 🌸

With gearman you can run client and worker functions from the command line. That's the whole vibe. ✨

In ping mode (--ping), gearman only checks that a job server responds to an ECHO request. No function name (-f) and no worker are required. This is suitable for process supervisors and container health checks, for example:

gearman --ping -h example.com -p 4730
gearman --ping -h 127.0.0.1 -p 47300 -S -t 2000

The environmental variable GEARMAN_SERVER can be used to specify multiple gearmand servers. Please see the c:func:'gearman_client_add_servers' for an explanation of the required syntax πŸ’–


🏠 HOME 🏠

To find out more information please check: https://gearman.org/gearmand/ 🌈


πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

Data Differential http://www.datadifferential.com/ β€” yes, that's the author line, bestie πŸ‘‘


2011-2014, Data Differential, http://www.datadifferential.com/ πŸŽ€


Okay bye bestie, this was version 2.2.0, dated Oct 18, 2026, signing off from the GEARMAN(1) manual πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from