gearman_worker_remove_servers(3)

gearman_worker_remove_servers3

Gearmand documentation, https://gearman.org/gearmand/

Usage

#include <libgearman/gearman.h>

gearman_return_t gearman_worker_add_server(gearman_worker_st *worker, const char *host, in_port_t port)
gearman_return_t gearman_worker_add_servers(gearman_worker_st *worker, const char *servers)
void gearman_worker_remove_servers(gearman_worker_st *worker)

Link with -lgearman

Overview

gearman_worker_add_server() will add an additional gearmand server to the list of servers that the worker will take work from.

gearman_worker_remove_servers() will remove all servers from the gearman_worker_st.

gearman_worker_add_servers() takes a list of gearmand servers that will be parsed to provide servers for the worker. The format for this is SERVER[:PORT][,SERVER[:PORT]]...

Examples of this are:

10.0.0.1,10.0.0.2,10.0.0.3
localhost234,jobserver2.domain.com:7003,10.0.0.3

Return value

gearman_worker_add_server() and gearman_worker_remove_servers() return gearman_return_t.

Home

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

SEE ALSO:

gearmand Gearman Client/Worker Library gearman_worker_st

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8–9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Author

Data Differential http://www.datadifferential.com/

From gearmand 2.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.