DOKK / manpages / debian 11 / libgearman-dev / gearman_worker_add_server.3.en
GEARMAN_WORKER_ADD_SERVER(3) Gearmand GEARMAN_WORKER_ADD_SERVER(3)

gearman_worker_add_server - Gearmand Documentation, http://gearman.info/

#include <libgearman/gearman.h>




Link with -lgearman

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


gearman_worker_add_server() and gearman_worker_remove_servers() return gearman_return_t.

To find out more information please check: http://gearman.info/

SEE ALSO:

gearmand ../libgearman gearman_worker_st


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

2011-2020, Data Differential, http://www.datadifferential.com/

December 12, 2020 1.1.19.1+ds