.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "GEARMAND 1p" .TH GEARMAND 1p "2022-06-05" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" gearmand \- Gearman client/worker connector. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& gearmand \-\-daemon .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is the main executable for Gearman::Server. It provides command-line configuration of port numbers, pidfiles, and daemonization. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\-\-daemonize / \-d" 4 .IX Item "--daemonize / -d" Make the daemon run in the background (good for init.d scripts, bad for running under daemontools/supervise). .IP "\-\-port=4730 / \-p 4730" 4 .IX Item "--port=4730 / -p 4730" Set the port number, defaults to 4730. .IP "\-\-listen hostname / \-L hostname" 4 .IX Item "--listen hostname / -L hostname" Address the server should listen on. .Sp Default is .IP "\-\-pidfile=/some/dir/gearmand.pid" 4 .IX Item "--pidfile=/some/dir/gearmand.pid" Write a pidfile when starting up .IP "\-\-debug=1" 4 .IX Item "--debug=1" Enable debugging (currently the only debug output is when a client or worker connects). .IP "\-\-accept=10" 4 .IX Item "--accept=10" Number of new connections to accept each time we see a listening socket ready. This doesn't usually need to be tuned by anyone, however in dire circumstances you may need to do it quickly. .IP "\-\-wakeup=3" 4 .IX Item "--wakeup=3" Number of workers to wake up per job inserted into the queue. .Sp Zero (0) is a perfectly acceptable answer, and can be used if you don't care much about job latency. This would bank on the base idea of a worker checking in with the server every so often. .Sp Negative One (\-1) indicates that all sleeping workers should be woken up. .Sp All other negative numbers will cause the server to throw exception and not start. .IP "\-\-wakeup\-delay=" 4 .IX Item "--wakeup-delay=" Time interval before waking up more workers (the value specified by \-\-wakeup) when jobs are still in the queue. .Sp Zero (0) means go as fast as possible, but not all at the same time. Similar to \-1 on \-\-wakeup, but is more cooperative in gearmand's multitasking model. .Sp Negative One (\-1) means that this event won't happen, so only the initial workers will be woken up to handle jobs in the queue. .IP "\-\-version" 4 .IX Item "--version" Display the version and exit. .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2005\-2007, Danga Interactive .PP You are granted a license to use it under the same terms as Perl itself. .SH "WARRANTY" .IX Header "WARRANTY" This is free software. \s-1IT COMES WITHOUT WARRANTY OF ANY KIND.\s0 .SH "AUTHORS" .IX Header "AUTHORS" Brad Fitzpatrick .PP Brad Whitaker .SH "SEE ALSO" .IX Header "SEE ALSO" Gearman::Server .PP Gearman::Client .PP Gearman::Worker .PP Gearman::Client::Async