BEANSTALKD(1)
π BEANSTALKD β ok so listen bestie, it's a work queue π
the manual name is beanstalkd(1) and we're gonna get you comfy with it, fr fr π«Ά
β¨ NAME β¨
beanstalkd β simple, fast work queue. that's it. that's the whole vibe. π
π SYNOPSIS π
beanstalkd [options]
literally just run it with whatever options you want, she's flexible β¨
π¦ DESCRIPTION π¦
Okay so, Beanstalkd is a simple work-queue service. Its interface is generic β like, does-not-care-what-you-throw-at-it generic β even though it was originally designed for reducing the latency of page views in high-volume web applications by running time-consuming tasks asynchronously. iconic origin story tbh π
When started, beanstalkd opens a socket (or uses a file descriptor provided by the init(1) system, see #ENVIRONMENT) and listens for incoming connections. For each connection, it reads a sequence of commands to create, reserve, delete, and otherwise manipulate "jobs", units of work to be done. jobs are the main characters here π
See file doc/protocol.txt in the beanstalkd distribution for a thorough description of the meaning and format of the beanstalkd protocol. iykyk β read it, it slaps π
π OPTIONS π
one bullet per flag, no skips, we do not gatekeep here π
-bpath β Use a binlog to keep jobs on persistent storage in directory path. Upon startup,beanstalkdwill recover any binlog that is present in path, then, during normal operation, append new jobs and changes in state to the binlog. persistence era πΎ-fms β Callfsync(2)at most once every ms milliseconds. Larger values for ms reduce disk activity and improve speed at the cost of safety. A power failure could result in the loss of up to ms milliseconds of history. yeah, that's the tradeoff, no cap β οΈ
A ms value of 0 will cause beanstalkd to call fsync every time it writes to the binlog. max safety, max sweat
The default behavior is to sync every 50 ms.
(This option has no effect without -b.) π
-Fβ Never callfsync(2). Equivalent to-fwith an infinite ms value. living dangerously, bestie π
(This option has no effect without -b.) π
-hβ Show a brief help message and exit. your little cheat sheet β¨-laddr β Listen on address addr (default is0.0.0.0).
When addr starts with "unix:", the unprefixed value of it will be used as the local filesystem path to create a UNIX socket instead of a TCP socket. In this case the value of -p will be ignored. unix socket girlies rise π§
(Option -l has no effect if sd-daemon(5) socket activation is being used. See also #ENVIRONMENT.)
-pport β Listen on TCP port port (default is11300). 11300, the iconic number π₯
(Option -p has no effect if sd-daemon(5) socket activation is being used. See also #ENVIRONMENT.)
-sbytes β The size in bytes of each binlog file.
(This option has no effect without -b.) π
-uuser β Become the user user and its primary group. glow-down for security, honestly π«Ά-Vβ Increase verbosity. May be used more than once to produce more verbose output. The output format is subject to change. spam it, see what happens, but the format might shift on you π-vβ Print the version string and exit. quick lil vibe check on what version you're running β-zbytes β The maximum size in bytes of a job. π-cβ This flag has no effect. It is kept for historical compatibility only. an elder, respected but vibing π-nβ This flag has no effect. It is kept for historical compatibility only. its sibling, equally decorative π
πΈ ENVIRONMENT πΈ
LISTEN_PID,LISTEN_FDSβ These variables can be set byinit(1). Seesd_listen_fds(3)for details. socket activation lore π¦
π SEE ALSO π
sd-daemon(3),sd_listen_fds(3)- Files
README.mdanddoc/protocol.txtin thebeanstalkddistribution. https://beanstalkd.github.io/
π AUTHOR π
Beanstalkd is written by Keith Rarick and maintained by the community at https://github.com/beanstalkd/beanstalkd/issues π«Ά go say hi, they're lovely
and that's the whole page bestie, you ate it β¨ This one's from June 2020, tagged BEANSTALKD(1) in the BEANSTALKD manual β thanks for reading, love u, go queue something ππ
π¦ where this page comes from
- alpine 3.24: beanstalkd-doc 1.13-r1 Β· MIT
- debian bookworm: beanstalkd 1.12-2+b1 Β· MIT
- debian trixie: beanstalkd 1.13-1 Β· MIT
- nixos 26.05: beanstalkd 1.13
- nixpkgs unstable: beanstalkd 1.13
- ubuntu jammy: beanstalkd 1.12-2 Β· MIT
- ubuntu noble: beanstalkd 1.12-2 Β· MIT
- ubuntu questing: beanstalkd 1.13-1
- ubuntu resolute: beanstalkd 1.13-1build1 Β· MIT
- ubuntu stonking: beanstalkd 1.13-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms